aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ia64
diff options
context:
space:
mode:
authorGravatar Oliver O'Halloran <oohall@gmail.com> 2020-10-14 13:47:11 +1100
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2020-10-14 22:03:39 +1100
commit996f9e0f93f16211945c8d5f18f296a88cb32f91 (patch)
treef86c39e363263031f8ff210193f50d98fb36e512 /tools/testing/selftests/ia64
parentcpufreq: powernv: Fix frame-size-overflow in powernv_cpufreq_reboot_notifier (diff)
downloadlinux-996f9e0f93f16211945c8d5f18f296a88cb32f91.tar.gz
linux-996f9e0f93f16211945c8d5f18f296a88cb32f91.tar.bz2
linux-996f9e0f93f16211945c8d5f18f296a88cb32f91.zip
selftests/powerpc: Fix eeh-basic.sh exit codes
The kselftests test running infrastructure expects tests to finish with an exit code of 4 if the test decided it should be skipped. Currently eeh-basic.sh exits with the number of devices that failed to recover, so if four devices didn't recover we'll report a skip instead of a fail. Fix this by checking if the return code is non-zero and report success and failure by returning 0 or 1 respectively. For the cases where should actually skip return 4. Fixes: 85d86c8aa52e ("selftests/powerpc: Add basic EEH selftest") Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201014024711.1138386-1-oohall@gmail.com
Diffstat (limited to 'tools/testing/selftests/ia64')
0 files changed, 0 insertions, 0 deletions