From e75e7a5b0604135d7a4b64a9e45f3966ee98ab85 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Wed, 15 Apr 2015 15:10:31 -0700 Subject: [PATCH] tests: Add error handling for system calls Signed-off-by: Bryce Harrington Reviewed-By: Derek Foreman --- tests/weston-tests-env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/weston-tests-env b/tests/weston-tests-env index ed8ff98f..f945ac66 100755 --- a/tests/weston-tests-env +++ b/tests/weston-tests-env @@ -11,12 +11,12 @@ fi WESTON=$abs_builddir/weston LOGDIR=$abs_builddir/logs -mkdir -p "$LOGDIR" +mkdir -p "$LOGDIR" || exit SERVERLOG="$LOGDIR/${TEST_NAME}-serverlog.txt" OUTLOG="$LOGDIR/${TEST_NAME}-log.txt" -rm -f "$SERVERLOG" +rm -f "$SERVERLOG" || exit BACKEND=${BACKEND:-headless-backend.so}