forked from luck/tmp_suning_uos_patched
selftests/powerpc: Make the test check in eeh-basic.sh posix compliant
[ Upstream commit 3db380570af7052620ace20c29e244938610ca71 ]
The == operand is a bash extension, thus this will fail on Ubuntu
with:
./eeh-basic.sh: 89: test: 2: unexpected operator
As the /bin/sh on Ubuntu is pointed to DASH.
Use -eq to fix this posix compatibility issue.
Fixes: 996f9e0f93
("selftests/powerpc: Fix eeh-basic.sh exit codes")
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201228043459.14281-1-po-hsu.lin@canonical.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
460538d02a
commit
e00a29e245
|
@ -86,5 +86,5 @@ echo "$failed devices failed to recover ($dev_count tested)"
|
|||
lspci | diff -u $pre_lspci -
|
||||
rm -f $pre_lspci
|
||||
|
||||
test "$failed" == 0
|
||||
test "$failed" -eq 0
|
||||
exit $?
|
||||
|
|
Loading…
Reference in New Issue
Block a user