summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-05-15 07:32:10 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-05-22 11:18:46 +0000
commit236ee4d248a1de157c49eb7fcc59896548a9909e (patch)
tree7fe70808cad2e151e2fabb8d080047f7d4820d70
parent6082437a54746abdbfb16e1bbbba44640bdd10f2 (diff)
jenkins.sh: Collect .sum files only if --runtests was provided.
Otherwise check-artifacts.txt does not exist and grep fails, making jenkins.sh fail too. If --runtests was not used, we do not want to fail for lack of .sum files. Change-Id: I6cb7736cf40ec4b036d5806b9ee89a6f3d8dbb53
-rwxr-xr-xjenkins.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/jenkins.sh b/jenkins.sh
index 784b9be8..51368baf 100755
--- a/jenkins.sh
+++ b/jenkins.sh
@@ -440,7 +440,9 @@ if test x"${logserver}" != x""; then
fi
# Find all the test result files.
-sums="$(read_var ${user_workspace}/check-artifacts.txt 'dj_sum_[^=]*')"
+if test x"${runtests}" = x"true"; then
+ sums="$(read_var ${user_workspace}/check-artifacts.txt 'dj_sum_[^=]*')"
+fi
# Canadian Crosses are a win32 hosted cross toolchain built on a Linux
# machine.