[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH for-next 2/5] 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 <wei.liu2@xxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.