Commit bce7bf75 authored by Guido Gunther's avatar Guido Gunther
Browse files

tests: Check for cpuidle sysfs nodes

This is not sufficient to ensure cpuidle works but is at least
makes sure we don't lose basic kernel support.
parent 37e68d94
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())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment