Test script should skip cpuidle tests in case the kernel doesn't support it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro PMWG QA |
Fix Released
|
Medium
|
Rajagopal Venkat |
Bug Description
Currently the full cpuidle test set will be executed, even if cpuidle is not available at the kernel, making the test cases to fail.
The first test case already checks for cpuidle availability at sysfs, so others shouldn't be executed if the first one fails. The right test result would be 'skipped' instead of 'fail' as you can't consider that the test case has failed if the support wasn't even available.
One example:
LAVA: (stdout) make[1]: Entering directory `/root/
LAVA: (stdout) cc -g -Wall -pthread cpuidle_killer.c -o cpuidle_killer
LAVA: (stdout) ###
LAVA: (stdout) ### cpuidle_01:
LAVA: (stdout) ### test the cpuidle files are present in the sysfs
LAVA: (stdout) ### https:/
LAVA: (stdout) ###
LAVA: (stdout) cpuidle_01.0: checking 'current_driver' exists... fail
LAVA: (stdout) ###
LAVA: (stdout) ### cpuidle_02:
LAVA: (stdout) ### Run a cpuidle program killer
LAVA: (stdout) ### https:/
LAVA: (stdout) ###
LAVA: (stdout) cpuidle_02.0: checking cpuidle program runs successfully (120 secs)... Test duration exceeded
LAVA: (stdout) fail
LAVA: (stderr) make[1]: *** [cpuidle_02.log] Error 1
LAVA: (stdout) make[1]: Leaving directory `/root/
LAVA: (stderr) make: *** [check] Error 2
LAVA: Command 'cd pm-qa && make check ' returned non-zero exit status 2
Changed in linaro-power-qa: | |
assignee: | nobody → Rajagopal Venkat (rajagopalvenkat) |
importance: | Undecided → Medium |
Changed in linaro-power-qa: | |
status: | New → In Progress |
Changed in linaro-power-qa: | |
status: | In Progress → Fix Released |
For Panda 4460 board, I get another failure:
LAVA: (stdout) cpuhotplug_ 07.0/cpu1: checking offline event was received... fail
Is it an expected behavior?
observed on hardware pack:
http:// snapshots. linaro. org/precise/ hwpacks/ lt-panda- x11-base/ 201/hwpack_ linaro- lt-panda- x11-base_ 20120725- 201_armhf_ supported. tar.gz
with ubuntu rootfs image:
http:// snapshots. linaro. org/precise/ images/ ubuntu- desktop/ 313/linaro- precise- ubuntu- desktop- 20120725- 313.tar. gz