From 78798fb431362d2bbbc6261e442793c1d17290fb Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 27 Feb 2019 18:22:34 +0000 Subject: [PATCH] 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 --- automation/scripts/build-test.sh | 1 + 1 file changed, 1 insertion(+) 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" -- 2.30.2