`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 <wei.l...@citrix.com> --- 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.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel