diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2015-10-08 15:00:30 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2015-10-08 15:00:30 +0200 |
commit | 4238e41b8b1785d3cbabc8877fddb83012ad70d9 (patch) | |
tree | 689fee0d3a3307e0e4e1aaa6859071300004ea20 /tcwg-abe-test-gerrit.yaml | |
parent | 395461e177abb29e2762d9f6cb857f4827af9987 (diff) |
tcwg-abe-test-gerrit: run jenkins.sh in a schroot.
So that we validate ABE in the same environment as we
use in the buildfarm job. In particular, this avoids
using the buggy system's qemu which causes builds to
time out.
Change-Id: Ide5fa5f607fc2f9ad6235b052e1a423aa8c1d32a
Diffstat (limited to 'tcwg-abe-test-gerrit.yaml')
-rw-r--r-- | tcwg-abe-test-gerrit.yaml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tcwg-abe-test-gerrit.yaml b/tcwg-abe-test-gerrit.yaml index 0db0fd1f26..27457b3b11 100644 --- a/tcwg-abe-test-gerrit.yaml +++ b/tcwg-abe-test-gerrit.yaml @@ -75,9 +75,20 @@ - shell: | #!/bin/bash + schroot_arch=amd64 + schroot_image="tcwg-build-${schroot_arch}-trusty" + + session_id=$(schroot -b -c chroot:$schroot_image --preserve-environment) + BUILD_SHELL="schroot -r -c session:$session_id --preserve-environment -- bash" + $BUILD_SHELL -c "echo \"Build session is up; ulimit config:\"; ulimit -a" + + # Sometimes /dev/pts can't get unmounted on the first try. + # Workaround by retrying. + trap "schroot -f -e -c session:$session_id || sleep 60 || schroot -f -e -c session:$session_id" 0 1 2 3 5 9 13 15 + case "$test" in - cross_build) bash -x ${WORKSPACE}/jenkins.sh -t arm-linux-gnueabihf --runtests --excludecheck gdb --fileserver ex40-01.tcwglab.linaro.org/snapshots-ref ;; - native_build) bash -x ${WORKSPACE}/jenkins.sh -t native --runtests --bootstrap --excludecheck gdb --fileserver ex40-01.tcwglab.linaro.org/snapshots-ref ;; + cross_build) ${BUILD_SHELL} -x ${WORKSPACE}/jenkins.sh -t arm-linux-gnueabihf --runtests --excludecheck gdb --fileserver ex40-01.tcwglab.linaro.org/snapshots-ref ;; + native_build) ${BUILD_SHELL} -x ${WORKSPACE}/jenkins.sh -t native --runtests --bootstrap --excludecheck gdb --fileserver ex40-01.tcwglab.linaro.org/snapshots-ref ;; testsuite) set -e set -x |