From 4374ea7f2118d02a2419536fd1fa668de65160c1 Mon Sep 17 00:00:00 2001 From: Khouloud Touil Date: Thu, 21 Mar 2019 15:14:02 +0100 Subject: 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 --- jjb/common/include-agl-run-test-short.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'jjb/common/include-agl-run-test-short.sh') 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 -- cgit 1.2.3-korg