|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] automation: set ret for potential error in build-test.sh
commit 78798fb431362d2bbbc6261e442793c1d17290fb
Author: Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Wed Feb 27 18:22:34 2019 +0000
Commit: Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Fri Apr 5 11:14:57 2019 +0100
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>
Acked-by: Doug Goldstein <cardoe@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"
--
generated by git-patchbot for /home/xen/git/xen.git#staging
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |