diff options
Diffstat (limited to 'units/cpu')
-rw-r--r-- | units/cpu/jobs.pxu | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/units/cpu/jobs.pxu b/units/cpu/jobs.pxu index a3ebb24..6ccc3fe 100644 --- a/units/cpu/jobs.pxu +++ b/units/cpu/jobs.pxu @@ -2,18 +2,16 @@ plugin: shell category_id: com.canonical.plainbox::cpu id: cpu/scaling_test estimated_duration: 150.0 -requires: executable.name == 'fwts' +requires: + executable.name == 'fwts' + 'performance' in cpuinfo.governors user: root environ: PLAINBOX_SESSION_SHARE LD_LIBRARY_PATH SNAP command: if [[ -v SNAP ]]; then export LD_LIBRARY_PATH=$SNAP/usr/lib/fwts:$LD_LIBRARY_PATH fi - 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 + checkbox-support-fwts_test -t cpufreq -l ${PLAINBOX_SESSION_SHARE}/scaling_test.log _summary: Test the CPU scaling capabilities _description: |