]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - tools/testing/selftests/intel_pstate/run.sh
selftests: intel_pstate: return Kselftest Skip code for skipped tests
[mirror_ubuntu-bionic-kernel.git] / tools / testing / selftests / intel_pstate / run.sh
index bde31a0be5ca6b1214e4071ebf7a87a9110c1ab3..92897880434241fe08c36580997b42a18a4f2546 100755 (executable)
 
 EVALUATE_ONLY=0
 
+# Kselftest framework requirement - SKIP code is 4.
+ksft_skip=4
+
 if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then
        echo "$0 # Skipped: Test can only run on x86 architectures."
-       exit 0
+       exit $ksft_skip
 fi
 
 max_cpus=$(($(nproc)-1))