]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Remove bashism from test-wrapper.sh /bin/sh script.
authorMark Wielaard <mark@klomp.org>
Sat, 31 Oct 2020 10:19:23 +0000 (11:19 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 31 Oct 2020 10:19:23 +0000 (11:19 +0100)
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 <mark@klomp.org>
tests/ChangeLog
tests/test-wrapper.sh

index b84f2af0d3551000023c8a5f15e846bbfbcced9f..17c6ba2dccf5a4db4bfb16946f90a6fa4e6d79a5 100644 (file)
@@ -1,3 +1,7 @@
+2020-10-31  Mark Wielaard  <mark@klomp.org>
+
+       * test-wrapper.sh: Use =, not == for string compare.
+
 2020-10-29  Mark Wielaard  <mark@klomp.org>
 
        * test-wrapper.sh: Determine whether the test is a script or not
index db16c591a9d58c37373ad17a9aa7af1a3169bf87..c5d3f159cd95720d27e9e360450faa6d7460d4d5 100755 (executable)
@@ -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 "$@"