Patch "selftests/powerpc: Make the test check in eeh-basic.sh posix compliant" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests/powerpc: Make the test check in eeh-basic.sh posix compliant

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-powerpc-make-the-test-check-in-eeh-basic.s.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4007eeb07d5c1e467a304b9415f27a05388e0950
Author: Po-Hsu Lin <po-hsu.lin@xxxxxxxxxxxxx>
Date:   Mon Dec 28 12:34:59 2020 +0800

    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: 996f9e0f93f162 ("selftests/powerpc: Fix eeh-basic.sh exit codes")
    Signed-off-by: Po-Hsu Lin <po-hsu.lin@xxxxxxxxxxxxx>
    Reviewed-by: Frederic Barrat <fbarrat@xxxxxxxxxxxxx>
    Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20201228043459.14281-1-po-hsu.lin@xxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh
index cf001a2c69420..7c2cb04569dab 100755
--- a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh
+++ b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh
@@ -81,5 +81,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 $?



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux