diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2014-10-11 20:56:16 +0100 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2014-11-10 11:57:43 +0800 |
commit | 307a9806e9db1121d763db4214e16835cd7ea34b (patch) | |
tree | c3f0dee27b5a6d3b3d66bb12d8bc599421570131 | |
parent | c1c3f969fbd0d05ad24ab037defde500e7b3c77a (diff) | |
download | sparse-307a9806e9db1121d763db4214e16835cd7ea34b.tar.gz |
test-suite: remove bashism to avoid test failures
The use of the '==' operator in a test/[ conditional is a non-POSIX
bash extension. In order to avoid test failures on systems that do
not have bash as the system shell (/bin/sh), replace the use of the
'==' operator with the POSIX compatible '=' operator.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rwxr-xr-x | validation/test-suite | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/validation/test-suite b/validation/test-suite index 7f0f83ee..df5a7c60 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -114,7 +114,7 @@ do_test() set -- $cmd base_cmd=`basename $1` for i in $disabled_cmds; do - if [ "$i" == "$base_cmd" ] ; then + if [ "$i" = "$base_cmd" ] ; then disabled_tests=`expr $disabled_tests + 1` echo " DISABLE $test_name ($file)" return 3 |