summaryrefslogtreecommitdiff
path: root/jenkins.sh
diff options
context:
space:
mode:
authorCharles Baylis <charles.baylis@linaro.org>2015-12-04 16:16:31 +0000
committerCharles Baylis <charles.baylis@linaro.org>2015-12-04 16:24:33 +0000
commit6aaaca3c11de20bbba3fd68e29fa5aaaf25ccb57 (patch)
tree6dba7d30b1687583b654104df7bebf6c89eb53bc /jenkins.sh
parent2ac4236ccc43f76d01026c6ea8620f50add59da7 (diff)
Check that expect works before starting build
There is an ongoing problem which means that expect is unable to spawn processes. Detect the condition before running make check, and try to output a little bit of debug info. Change-Id: Ib9432973d70562da6d31533c64214bcac67cfdec
Diffstat (limited to 'jenkins.sh')
-rwxr-xr-xjenkins.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/jenkins.sh b/jenkins.sh
index 8a9064b6..a419ebac 100755
--- a/jenkins.sh
+++ b/jenkins.sh
@@ -253,6 +253,19 @@ fi
# if runtests is true, then run make check after the build completes
if test x"${runtests}" = xtrue; then
+ # check that expect is working, and dump some debug info then exit if not
+ if ! echo "spawn true" | /usr/bin/expect -f - >/dev/null; then
+ echo "expect cannot spawn processes. Aborting make check."
+ echo "some debug info follows..."
+ echo "running: ls -l /dev/ptmx"
+ ls -l /dev/ptmx
+ echo "running: ls -l /dev/pts"
+ ls -l /dev/pts
+ echo "running: grep devpts /proc/mounts"
+ grep devpts /proc/mounts
+ exit 1
+ fi
+
check="--check all"
check="${check}${excludecheck:+ --excludecheck ${excludecheck}}"
fi