← Back to team overview

linaro-pm-wg team mailing list archive

[Bug 1017014] [NEW] Test script should skip cpuidle tests in case the kernel doesn't support it

 

Public bug reported:

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/.local/share/lava_test/installed-tests/pwrmgmt/pm-qa/cpuidle'
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://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#cpuidle_01
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://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#cpuidle_02
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/.local/share/lava_test/installed-tests/pwrmgmt/pm-qa/cpuidle'
LAVA: (stderr) make: *** [check] Error 2
LAVA: Command 'cd pm-qa && make check ' returned non-zero exit status 2

** Affects: linaro-power-qa
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Linaro
Power Management Working Group, which is the registrant for Linaro PMWG
QA.
https://bugs.launchpad.net/bugs/1017014

Title:
  Test script should skip cpuidle tests in case the kernel doesn't
  support it

Status in Linaro Power Management QA testsuite:
  New

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/.local/share/lava_test/installed-tests/pwrmgmt/pm-qa/cpuidle'
  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://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#cpuidle_01
  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://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#cpuidle_02
  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/.local/share/lava_test/installed-tests/pwrmgmt/pm-qa/cpuidle'
  LAVA: (stderr) make: *** [check] Error 2
  LAVA: Command 'cd pm-qa && make check ' returned non-zero exit status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/linaro-power-qa/+bug/1017014/+subscriptions


Follow ups

References