summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-04-02 19:16:56 -0700
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-04-07 14:29:24 +0300
commitb9ec2be5a1b5abf37d2c04b852864374022092d8 (patch)
treefa037e4ce29ab6ce5458031f6cd084d31be9b4b5
parent69eb737a33c83ae1d37d41e6e8162da7a86e6e20 (diff)
downloadweston-b9ec2be5a1b5abf37d2c04b852864374022092d8.tar.gz
weston-b9ec2be5a1b5abf37d2c04b852864374022092d8.tar.bz2
weston-b9ec2be5a1b5abf37d2c04b852864374022092d8.zip
tests: Prefer bracket form of test command for consistency
Also use variable default assignment to eliminate an if clause Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rwxr-xr-xtests/weston-tests-env6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/weston-tests-env b/tests/weston-tests-env
index 6c222ca2..fa36523a 100755
--- a/tests/weston-tests-env
+++ b/tests/weston-tests-env
@@ -3,7 +3,7 @@
TEST_FILE=${1##*/}
TEST_NAME=${TEST_FILE%.*}
-if test -z "$TEST_NAME"; then
+if [ -z "$TEST_NAME" ]; then
echo "usage: $(basename $0) <test name>"
exit 1;
fi
@@ -18,9 +18,7 @@ OUTLOG="$LOGDIR/${TEST_NAME}-log.txt"
rm -f "$SERVERLOG"
-if test -z "$BACKEND"; then
- BACKEND=headless-backend.so
-fi
+BACKEND=${BACKEND:-headless-backend.so}
MODDIR=$abs_builddir/.libs