test_cpuidle.py 200 Bytes
Newer Older
1 2 3
def test_cpuidle():
    assert("WFI\n" == open("/sys/devices/system/cpu/cpu0/cpuidle/state0/name").read())
    assert("cpu-sleep\n" == open("/sys/devices/system/cpu/cpu0/cpuidle/state1/name").read())