--- oslo-series-final/0010-Run-test_failed-if-the-exit-status-of-a-test-script-.patch +++ oslo-series-v2/v2-0010-Run-test_failed-if-the-exit-status-of-a-test-scri.patch @@ -1,8 +1,8 @@ -From e3b60b2452ea3afcd3ea7872ab98ca53957856df Mon Sep 17 00:00:00 2001 +From 56bed0bdc8b80d705a9eb0b13fabe78e1d8895a7 Mon Sep 17 00:00:00 2001 From: Per Cederqvist -Date: Wed, 19 Mar 2014 20:24:54 +0100 -Subject: [GUILT 10/28] Run test_failed if the exit status of a test script is - bad. +Date: Tue, 13 May 2014 21:03:47 +0200 +Subject: [GUILT v2 10/29] Run test_failed if the exit status of a test script + is bad. To: Jeff Sipek Cc: git@vger.kernel.org @@ -18,6 +18,6 @@ Signed-off-by: Per Cederqvist --- - regression/run-tests | 11 ++++++++--- - 1 file changed, 8 insertions(+), 3 deletions(-) + regression/run-tests | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/regression/run-tests b/regression/run-tests index a10e796..d39f9ef 100755 --- a/regression/run-tests +++ b/regression/run-tests - @@ -55,11 +55,16 @@ function run_test + @@ -55,11 +55,15 @@ function run_test # run the test cd "$REPODIR" > /dev/null - "$REG_DIR/t-$1.sh" 2>&1 > "$LOGFILE" - ERR=$? - + if "$REG_DIR/t-$1.sh" 2>&1 > "$LOGFILE" - + then - + ERR=false + + if "$REG_DIR/t-$1.sh" 2>&1 > "$LOGFILE"; then + + ERR=false + else - + ERR=true + + ERR=true + fi + cd - > /dev/null [...] echo "done." --