diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/intel_pstate/run.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh index c670359becc6..6ded61670f6d 100755 --- a/tools/testing/selftests/intel_pstate/run.sh +++ b/tools/testing/selftests/intel_pstate/run.sh | |||
@@ -30,9 +30,12 @@ | |||
30 | 30 | ||
31 | EVALUATE_ONLY=0 | 31 | EVALUATE_ONLY=0 |
32 | 32 | ||
33 | # Kselftest framework requirement - SKIP code is 4. | ||
34 | ksft_skip=4 | ||
35 | |||
33 | if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then | 36 | if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then |
34 | echo "$0 # Skipped: Test can only run on x86 architectures." | 37 | echo "$0 # Skipped: Test can only run on x86 architectures." |
35 | exit 0 | 38 | exit $ksft_skip |
36 | fi | 39 | fi |
37 | 40 | ||
38 | max_cpus=$(($(nproc)-1)) | 41 | max_cpus=$(($(nproc)-1)) |