From 8c31a63f3136a16d2d001cff75c2ee5aa8d80af8 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 8 Aug 2018 11:00:25 +0200 Subject: [PATCH] tests/run-tests: Replace == by -eq when comparing rc The use of == with test seems to cause problems when comparing the return code in line 20. Lets use -eq instead. Change-Id: I92905770f3a96a632a51858952a82180303d6c05 Related: OS#3376 --- tests/run-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-tests b/tests/run-tests index 7c40b29..5c1544f 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -17,7 +17,7 @@ for T in $TESTS; do rm $TMP ./$T > $TMP diff -u $EXPOUT $TMP - if [ $? == 0 ]; then + if [ $? -eq 0 ]; then echo "Test $T passed" else echo "Test $T FAILED!"