tests: Add error handling for system calls

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
Bryce Harrington 2015-04-15 15:10:31 -07:00
parent f556ebe269
commit e75e7a5b06
1 changed files with 2 additions and 2 deletions

View File

@ -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}