From b9f88347dc16d429bdfc0b626ebb97f25e174588 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 27 Jan 2014 14:31:06 +0100 Subject: [PATCH] reports retcod from run_log --- lbuild-nightly.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lbuild-nightly.sh b/lbuild-nightly.sh index aabb5c83..68148596 100755 --- a/lbuild-nightly.sh +++ b/lbuild-nightly.sh @@ -324,17 +324,17 @@ function run_log () { # temporarily turn off set -e set +e - ssh 2>&1 -n ${testmaster_ssh} ${testdir}/run_log --build ${BUILD_SCM_URL} --url ${url} $run_log_env $RUN_LOG_EXTRAS $VERBOSE --all; retcod=$? - set -e - + ssh 2>&1 ${testmaster_ssh} ${testdir}/run_log --build ${BUILD_SCM_URL} --url ${url} $run_log_env $RUN_LOG_EXTRAS $VERBOSE --all; retcod=$? + # interpret retcod of TestMain.py; 2 means there were ignored steps that failed - echo "received from run_log" $retcod + echo "retcod from run_log" $retcod case $retcod in 0) success=true; IGNORED="" ;; 2) success=true; IGNORED=true ;; *) success=""; IGNORED="" ;; esac + set -e # gather logs in the build vm mkdir -p $(rootdir $BASE)/build/testlogs rsync --verbose --archive ${testmaster_ssh}:$BASE/logs/ $(rootdir $BASE)/build/testlogs -- 2.43.0