Fix invalid comparison operator in tests
This commit is contained in:
parent
74dc3723c4
commit
c13acc3fbb
2
test.sh
2
test.sh
@ -18,7 +18,7 @@ do_test() {
|
|||||||
is=$($bin "$name")
|
is=$($bin "$name")
|
||||||
is="$is:$?"
|
is="$is:$?"
|
||||||
|
|
||||||
if [ "$is" == "$should" ]; then
|
if [ "$is" = "$should" ]; then
|
||||||
echo "Test $1 success"
|
echo "Test $1 success"
|
||||||
else
|
else
|
||||||
echo "Test $1 fail: \"${bin##*/} $name\" returned \"$is\" instead of \"$should\""
|
echo "Test $1 fail: \"${bin##*/} $name\" returned \"$is\" instead of \"$should\""
|
||||||
|
Loading…
Reference in New Issue
Block a user