run-test-short: Check the existence of the 'build-info' file 63/20763/1
authorKhouloud Touil <ktouil@baylibre.com>
Thu, 21 Mar 2019 14:14:02 +0000 (15:14 +0100)
committerKhouloud Touil <ktouil@baylibre.com>
Thu, 21 Mar 2019 14:41:56 +0000 (15:41 +0100)
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>
jjb/common/include-agl-run-test-short.sh

index c397f12..6fb72ac 100644 (file)
@@ -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