From: Mark Wielaard Date: Sat, 31 Oct 2020 10:19:23 +0000 (+0100) Subject: tests: Remove bashism from test-wrapper.sh /bin/sh script. X-Git-Tag: elfutils-0.182~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92692b817028499111a5446cf1bc8369d0a3b408;p=thirdparty%2Felfutils.git tests: Remove bashism from test-wrapper.sh /bin/sh script. Debian uses dash as /bin/sh which is pretty strict about syntax. It didn't like the == in the test for strings in the test-wrapper.sh. Replace by single =. Signed-off-by: Mark Wielaard --- diff --git a/tests/ChangeLog b/tests/ChangeLog index b84f2af0d..17c6ba2dc 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2020-10-31 Mark Wielaard + + * test-wrapper.sh: Use =, not == for string compare. + 2020-10-29 Mark Wielaard * test-wrapper.sh: Determine whether the test is a script or not diff --git a/tests/test-wrapper.sh b/tests/test-wrapper.sh index db16c591a..c5d3f159c 100755 --- a/tests/test-wrapper.sh +++ b/tests/test-wrapper.sh @@ -66,7 +66,7 @@ fi # When it is a run-*.sh script the VALGRIND_CMD will be passed on # otherwise we'll need to run the binary explicitly under valgrind. -if [ "x$is_shell_script" == "xyes" ]; then +if [ "x$is_shell_script" = xyes ]; then exec "$@" else exec $VALGRIND_CMD "$@"