From: Wei Liu Date: Wed, 27 Feb 2019 18:22:34 +0000 (+0000) Subject: automation: set ret for potential error in build-test.sh X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=78798fb431362d2bbbc6261e442793c1d17290fb;p=people%2Froyger%2Fxen.git automation: set ret for potential error in build-test.sh `git rev-list` can fail if the base..tip range contains invalid commit(s). If that happens ret never gets a chance to be set. Set ret before hand to fix the issue. Signed-off-by: Wei Liu Acked-by: Doug Goldstein --- diff --git a/automation/scripts/build-test.sh b/automation/scripts/build-test.sh index 206a4f9a4a..da643adc01 100755 --- a/automation/scripts/build-test.sh +++ b/automation/scripts/build-test.sh @@ -38,6 +38,7 @@ else ORIG=`git rev-parse HEAD` fi +ret=1 while read num rev; do echo "Testing $num $rev"