From 95b39aeccda90a8211e6563e4308500428b727af Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Mon, 25 Nov 2019 12:05:49 -0500 Subject: units/cpu/jobs.pxu only run cpufreq test if userspace is an available governor. lp: #1853877 --- units/cpu/jobs.pxu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3