aboutsummaryrefslogtreecommitdiff
path: root/tcwg-abe-test-gerrit-cambridge.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2015-09-23 02:19:11 +0200
committerChristophe Lyon <christophe.lyon@linaro.org>2015-09-23 02:19:11 +0200
commitc7e5c9e1646ea0f278375989326a1fbf937302c2 (patch)
tree632178a1210966b4af88661d5562f778b0d33f31 /tcwg-abe-test-gerrit-cambridge.yaml
parentc23c46c127e1312f5572587b649ca897c7e1d487 (diff)
tcwg-abe-test-gerrit-cambridge: run jenkins.sh in a schroot.
So that we validate ABE in the same environment as we use it in the buildfarm job. Change-Id: I6a33520d907df511d41f40a1dc2bc169526ced22
Diffstat (limited to 'tcwg-abe-test-gerrit-cambridge.yaml')
-rw-r--r--tcwg-abe-test-gerrit-cambridge.yaml15
1 files changed, 13 insertions, 2 deletions
diff --git a/tcwg-abe-test-gerrit-cambridge.yaml b/tcwg-abe-test-gerrit-cambridge.yaml
index 9c8e705..dac1554 100644
--- a/tcwg-abe-test-gerrit-cambridge.yaml
+++ b/tcwg-abe-test-gerrit-cambridge.yaml
@@ -74,9 +74,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