projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21a359
)
automation: set ret for potential error in build-test.sh
author
Wei Liu
<wei.liu2@citrix.com>
Wed, 27 Feb 2019 18:22:34 +0000
(18:22 +0000)
committer
Wei 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
patch
|
blob
|
history
diff --git
a/automation/scripts/build-test.sh
b/automation/scripts/build-test.sh
index 206a4f9a4a4db58c6312d42ec890812a092b17b1..da643adc018bfe7f605822ae8e637b2c4e79d205 100755
(executable)
--- 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"