aboutsummaryrefslogtreecommitdiff
path: root/tcwg-binutils.yaml
diff options
context:
space:
mode:
authorCharles Baylis <charles.baylis@linaro.org>2015-12-05 20:46:33 +0000
committerCharles Baylis <charles.baylis@linaro.org>2015-12-05 21:03:27 +0000
commitbcd15c6576cf67e49333eda50536d3781fdd8419 (patch)
tree70444840c7e30ee2604193af4c8674dc26cb6973 /tcwg-binutils.yaml
parent227fac4d5a4efe446e609fcb364f36286328a633 (diff)
Fix trap for schroot cleanup
The comment above each trap line reads: # Sometimes /dev/pts can't get unmounted on the first try. # Workaround by retrying. However, there is a bug which prevents that retry from being performed. This patch ensures that the retry is not dependent on the exit status of the sleep command. Change-Id: I726265f69d626510f8aa2b1cd951af9140c344a2
Diffstat (limited to 'tcwg-binutils.yaml')
-rw-r--r--tcwg-binutils.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcwg-binutils.yaml b/tcwg-binutils.yaml
index 3a01b02036..0dc52af05d 100644
--- a/tcwg-binutils.yaml
+++ b/tcwg-binutils.yaml
@@ -90,7 +90,7 @@
# 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
+ 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 $target in
arm-wince-pe)