jjb/common: run-test-short: fix board-specific check for releng-scripts 51/11151/1
authorKevin Hilman <khilman@baylibre.com>
Thu, 5 Oct 2017 20:15:26 +0000 (20:15 +0000)
committerKevin Hilman <khilman@baylibre.com>
Thu, 5 Oct 2017 20:15:26 +0000 (20:15 +0000)
The (broken) conditional used to check which boards to use with releng-scripts
was always returning true.  Fix it to use [[ ]] instead of (( ))

Change-Id: I244d95c95a40e14e7a3ea682030733096b2af746
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
jjb/common/include-agl-run-test-short.sh

index a2a3dda..2e82ade 100644 (file)
@@ -14,8 +14,8 @@ cd $REPODIR
 # WIP: use $RELENG for subset of boards
 __MACHINE=${MACHINE%-nogfx} # releng doesn't care
 if [ ! -z $RELENG ] && \
-       (( x$__MACHINE == x"qemux86-64" || \
-         x$__MACHINE == x"m3ulcb" )); then
+       [[ x$__MACHINE == x"qemux86-64" || \
+         x$__MACHINE == x"m3ulcb" ]]; then
     CREATE_ARGS=""
     [[ ! -z $GERRIT_CHANGE_NUMBER ]] && CREATE_ARGS+="-j $GERRIT_CHANGE_NUMBER "
     [[ ! -z $GERRIT_PATCHSET_NUMBER ]] && CREATE_ARGS+="-i $GERRIT_PATCHSET_NUMBER "