]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
automation: set ret for potential error in build-test.sh
authorWei Liu <wei.liu2@citrix.com>
Wed, 27 Feb 2019 18:22:34 +0000 (18:22 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 5 Apr 2019 10:14:57 +0000 (11:14 +0100)
`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.liu2@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
automation/scripts/build-test.sh

index 206a4f9a4a4db58c6312d42ec890812a092b17b1..da643adc018bfe7f605822ae8e637b2c4e79d205 100755 (executable)
@@ -38,6 +38,7 @@ else
     ORIG=`git rev-parse HEAD`
 fi
 
+ret=1
 while read num rev; do
     echo "Testing $num $rev"