nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitester-wrapper: test if the target hash is valid
[nit.git]
/
misc
/
jenkins
/
nitester-wrapper.sh
diff --git
a/misc/jenkins/nitester-wrapper.sh
b/misc/jenkins/nitester-wrapper.sh
index
3148bd8
..
ec1a0ef
100755
(executable)
--- a/
misc/jenkins/nitester-wrapper.sh
+++ b/
misc/jenkins/nitester-wrapper.sh
@@
-29,7
+29,10
@@
tools_dir=misc/jenkins/
cd $local_repo
git clean -fdxq .
git fetch origin
-git checkout $hash
+
+if ! git checkout $hash; then
+ exit 1
+fi
# Make nitg and tools
$tools_dir/unitrun.sh "run-make-0initial_make" make