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:
parent
f556ebe269
commit
e75e7a5b06
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue