[PATCH 8/9] tests: Add a couple minor error checks

Bryce Harrington bryce at osg.samsung.com
Thu Apr 2 19:16:57 PDT 2015


Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
 tests/weston-tests-env | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/tests/weston-tests-env b/tests/weston-tests-env
index 53bf8d6..c0a211e 100755
--- a/tests/weston-tests-env
+++ b/tests/weston-tests-env
@@ -10,19 +10,15 @@ fi
 
 WESTON=$abs_builddir/weston
 LOGDIR=$abs_builddir/logs
+mkdir -p "$LOGDIR" || exit
 
-mkdir -p "$LOGDIR"
-
-SERVERLOG="$LOGDIR/${TEST_NAME}-serverlog.txt"
 OUTLOG="$LOGDIR/${TEST_NAME}-log.txt"
+SERVERLOG="$LOGDIR/${TEST_NAME}-serverlog.txt"
+rm -f "$SERVERLOG" || exit
 
-rm -f "$SERVERLOG"
-
+client=
 BACKEND=${BACKEND:-headless-backend.so}
-
 MODDIR=$abs_builddir/.libs
-
-client=
 TEST_MODULE=$MODDIR/${TEST_FILE/.la/.so}
 SHELL_PLUGIN=$MODDIR/desktop-shell.so
 XWAYLAND_PLUGIN=$MODDIR/xwayland.so
-- 
1.9.1



More information about the wayland-devel mailing list