diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2018-02-28 16:30:51 -0600 |
---|---|---|
committer | Anibal Limon <anibal.limon@linaro.org> | 2018-02-28 22:38:01 +0000 |
commit | 90ad969c71245dffc647c25775a1a5923245f99f (patch) | |
tree | df98f24b756db0d5bbf7446a6ce7a7de2e222438 /lt-qcom-debian-images/builders-fai.sh | |
parent | 3a345c555db7a75480255f153d541d8915fc413a (diff) |
lt-qcom-debian-images/builders-fai.sh: Test if build changes exists
If is the first build the out/build-changes.txt is empty so test if
a out/build-changes.txt exists to avoid failure, search "cat:
out/build-changes.txt: No such file or directory" in [1].
[1]
https://ci.linaro.org/job/lt-qcom-debian-images-dragonboard600c/47/console
Change-Id: I2ee9d1d13b2754cc399e16ad2d51f50193e78682
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images/builders-fai.sh')
-rw-r--r-- | lt-qcom-debian-images/builders-fai.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lt-qcom-debian-images/builders-fai.sh b/lt-qcom-debian-images/builders-fai.sh index 8f84f7ef93..cf2c6e25ca 100644 --- a/lt-qcom-debian-images/builders-fai.sh +++ b/lt-qcom-debian-images/builders-fai.sh @@ -99,13 +99,20 @@ else fi # the space after pre.. tag is on purpose -cat > out/README.textile << EOF +if [ -f out/build-changes.txt ]; then + cat > out/README.textile << EOF h4. Build changes pre.. EOF -cat out/build-changes.txt >> out/README.textile + cat out/build-changes.txt >> out/README.textile +else + cat > out/README.textile << EOF + +h4. No build changes +EOF +fi cat >> out/HEADER.textile << EOF * Kernel package name: ${kernel_binpkg} |