From 883833a62a2a4190a480068fdde5e1d716151e4f Mon Sep 17 00:00:00 2001 From: Marjan Schiller Date: Thu, 13 Jun 2013 15:51:50 +0200 Subject: [PATCH] Changed execution for liveboot_set_test_state.sh --- liveboot_set_test_state.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/liveboot_set_test_state.sh b/liveboot_set_test_state.sh index 743e22c..8a93392 100755 --- a/liveboot_set_test_state.sh +++ b/liveboot_set_test_state.sh @@ -26,6 +26,13 @@ git checkout $GIT_BRANCH ./liveboot_test_reporter.py $BUILD_NUMBER $TEST_STATE EOF -bash -x $BUILD_SCRIPT +set -e +trap set_failure INT TERM EXIT ERR KILL STOP HUP ABRT PIPE CHLD + +echo "sudo pbuilder --execute --bindmounts /srv/build/ -- $BUILD_SCRIPT" > ${BUILD_SCRIPT}_sudo +bash -x ${BUILD_SCRIPT}_sudo +rm $BUILD_SCRIPT ${BUILD_SCRIPT}_sudo + +trap - INT TERM EXIT figlet "OK" \ No newline at end of file -- 2.39.5