From 92692b817028499111a5446cf1bc8369d0a3b408 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 31 Oct 2020 11:19:23 +0100 Subject: [PATCH] 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 --- tests/ChangeLog | 4 ++++ tests/test-wrapper.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index b84f2af0..17c6ba2d 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 db16c591..c5d3f159 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 "$@" -- 2.18.4