nitester-wrapper: test if the target hash is valid
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 11 Dec 2014 13:39:03 +0000 (08:39 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 12 Dec 2014 19:21:26 +0000 (14:21 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

misc/jenkins/nitester-wrapper.sh

index 3148bd8..ec1a0ef 100755 (executable)
@@ -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