summaryrefslogtreecommitdiff
path: root/jenkins.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2016-11-09 11:27:18 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2016-11-17 07:20:51 +0000
commit5b759a81f8cc68c470c50080172bb6d23d92d405 (patch)
tree956ca795674e32d97e03cc794e3b9bc1fa01df5d /jenkins.sh
parent8018a7505808bb89651a8edcec686dd7eab7bd6c (diff)
jenkins.sh: Handle expectedly-missing test logs.
When $runtests is false check.out and check.err are not generated. Change-Id: Ic5b0d3de2ad2edf711805099ec48e627d048d7cb
Diffstat (limited to 'jenkins.sh')
-rwxr-xr-xjenkins.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/jenkins.sh b/jenkins.sh
index cdc1feef..c4f65407 100755
--- a/jenkins.sh
+++ b/jenkins.sh
@@ -67,6 +67,9 @@ logname=""
# Compiler languages to build
languages=default
+# Whether to run tests
+runtests=false
+
# Target to build for
target=""
@@ -354,7 +357,7 @@ if test $ret -gt 0; then
fi
# if runtests is true, then run make check after the build completes
-if test x"${runtests}" = xtrue; then
+if $runtests; then
# check that expect is working, and dump some debug info then exit if not
if ! echo "spawn true" | /usr/bin/expect -f - >/dev/null; then
echo "expect cannot spawn processes. Aborting make check."
@@ -507,7 +510,10 @@ if test x"${logserver}" != x"" && test x"${sums}" != x -o x"${runtests}" != x"tr
cp ${logs} ${logs_dir}/ || status=1
# Copy stdout and stderr output from abe.
- cp build.out build.err check.out check.err ${logs_dir}/ || status=1
+ cp build.out build.err ${logs_dir}/ || status=1
+ if $runtests; then
+ cp check.out check.err ${logs_dir}/ || status=1
+ fi
xz ${logs_dir}/* || status=1
scp ${logs_dir}/* ${logserver}:${basedir}/${dir}/ || status=1