summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Kidd <rhyskidd@gmail.com>2017-10-30 09:09:41 -0400
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-10-30 19:57:59 +0200
commit7aac0e88606ce453b111ce80419dc58519db05ad (patch)
treeda6b54a2a3cafae9e1576732df6369802f06dea0
parent1fc4de1ca390adec9be8bd7cc0c36cab07465959 (diff)
assembler: Fix bashism in run-test.sh
[[ a != b ]] is a bashism. As it's just comparing $1 to an empty string, use -n with a normal [ ]. Noticed whilst testing meson builds. /bin/sh is apparently dash in Intel's CI. v2: - keep this as a /bin/sh script (Joonas Lahtinen) Fixes: c3863e19 ("assembler/test: Prep work for meson") CC: Daniel Vetter <daniel.vetter@ffwll.ch> CC: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
-rw-r--r--assembler/test/run-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/assembler/test/run-test.sh b/assembler/test/run-test.sh
index 0a5252a8..b06e1044 100644
--- a/assembler/test/run-test.sh
+++ b/assembler/test/run-test.sh
@@ -5,7 +5,7 @@ BUILDDIR=${top_builddir-`pwd`}
test="TEST"
-if [[ "$1" != "" ]] ; then
+if [ -n "$1" ] ; then
test="$1"
fi