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
This commit is contained in:
Philipp Maier 2018-08-08 11:00:25 +02:00
parent 0868212cc8
commit 8c31a63f31
1 changed files with 1 additions and 1 deletions

View File

@ -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!"