summaryrefslogtreecommitdiff
diff options
authorJeff Lane <jeffrey.lane@canonical.com>2019-11-25 12:05:49 -0500
committerJeff Lane <jeffrey.lane@canonical.com>2019-11-25 12:05:49 -0500
commit95b39aeccda90a8211e6563e4308500428b727af (patch)
treec41874b350484cbaa6cdf1deb8944aca3c709ba4
parent2a28bc0290217186ca76b7d7c010b3ef8975217a (diff)
units/cpu/jobs.pxu only run cpufreq test if userspace is an available governor. lp: #1853877
-rw-r--r--units/cpu/jobs.pxu6
1 files changed, 5 insertions, 1 deletions
diff --git a/units/cpu/jobs.pxu b/units/cpu/jobs.pxu
index a027aa9..a3ebb24 100644
--- a/units/cpu/jobs.pxu
+++ b/units/cpu/jobs.pxu
@@ -9,7 +9,11 @@ command:
if [[ -v SNAP ]]; then
export LD_LIBRARY_PATH=$SNAP/usr/lib/fwts:$LD_LIBRARY_PATH
fi
- checkbox-support-fwts_test -t cpufreq -l ${PLAINBOX_SESSION_SHARE}/scaling_test.log
+ if grep -q userspace /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors; then
+ checkbox-support-fwts_test -t cpufreq -l ${PLAINBOX_SESSION_SHARE}/scaling_test.log
+ else
+ echo "userspace CPU governor not supported"
+ fi
_summary:
Test the CPU scaling capabilities
_description: