aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-run-test-short.sh
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-03-21 15:14:02 +0100
committerKhouloud Touil <ktouil@baylibre.com>2019-03-21 15:41:56 +0100
commit4374ea7f2118d02a2419536fd1fa668de65160c1 (patch)
tree6430273996999bf16141cd66481e6647c57fe26a /jjb/common/include-agl-run-test-short.sh
parenta61df879e3bcab3f588c8ad8ed157dd9aeaf005d (diff)
run-test-short: Check the existence of the 'build-info' file
Before displaying the content of the 'build-info' file, we have to check if this file exists. Change-Id: I029e9ca65a182724ce447c6e1d69db246a681dc9 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-run-test-short.sh')
-rw-r--r--jjb/common/include-agl-run-test-short.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/jjb/common/include-agl-run-test-short.sh b/jjb/common/include-agl-run-test-short.sh
index c397f126..6fb72ac8 100644
--- a/jjb/common/include-agl-run-test-short.sh
+++ b/jjb/common/include-agl-run-test-short.sh
@@ -9,8 +9,10 @@ set -x
cd $REPODIR
#cat build-info
-cat tmp/deploy/images/${TARGETMACHINE}/build-info
-source tmp/deploy/images/${TARGETMACHINE}/build-info
+if [ -e tmp/deploy/images/${TARGETMACHINE}/build-info ]; then
+ cat tmp/deploy/images/${TARGETMACHINE}/build-info
+ source tmp/deploy/images/${TARGETMACHINE}/build-info
+fi
echo "# LAVA lab target: ${LAVA_LAB} #"
# releng-scripts depends on jinja2 >= 2.9