aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2017-11-30 11:35:53 -0600
committerDaniel Díaz <daniel.diaz@linaro.org>2017-11-30 13:06:29 -0600
commita01641df9c27f39ce4adb0498c2f8d1db01c9ece (patch)
treec6aac8f0993b2784aa573a05e6312cc9e96fca3d
parent936b0df4f24c5904a0e7dd05129ecbd45e5c84fb (diff)
openembedded-armv8-ilp32: substitute LAVA template with Python
The shell snippet was also making substitutions of `pwd` from the LAVA template. That was not intended. Change-Id: I46084b007b7f87469fe2cacaab41d8ea14bc7232 Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
-rw-r--r--openembedded-armv8-ilp32.yaml9
1 files changed, 6 insertions, 3 deletions
diff --git a/openembedded-armv8-ilp32.yaml b/openembedded-armv8-ilp32.yaml
index 9209303f70..499cdb30c0 100644
--- a/openembedded-armv8-ilp32.yaml
+++ b/openembedded-armv8-ilp32.yaml
@@ -142,9 +142,12 @@
export BOOT_URL=${PUBLISH_SERVER}/${PUB_DEST}/$(ls out/boot-0.0*.img | xargs basename)
export SYSTEM_URL=${PUBLISH_SERVER}/${PUB_DEST}/$(ls out/linaro-image-${rootfs}-${MACHINE}-*.rootfs.img.gz | xargs basename)
export TESTNAME=syscalls
- eval "cat << EOF > custom_lava_job_definition.yaml
- $(<configs/openembedded-armv8/lava-job-definitions/${DEVICE_TYPE}/master-template-ltp.yaml)
- EOF"
+ cat << EOF | python > custom_lava_job_definition.yaml
+ import os
+ fh = open("configs/openembedded-armv8/lava-job-definitions/${DEVICE_TYPE}/master-template-ltp.yaml", "r")
+ print os.path.expandvars(fh.read())
+ fh.close()
+ EOF
cat << EOF > post_build_lava_parameters
DEVICE_TYPE=${DEVICE_TYPE}