diff options
author | Charles Baylis <charles.baylis@linaro.org> | 2015-12-04 16:16:31 +0000 |
---|---|---|
committer | Charles Baylis <charles.baylis@linaro.org> | 2015-12-04 16:24:33 +0000 |
commit | 6aaaca3c11de20bbba3fd68e29fa5aaaf25ccb57 (patch) | |
tree | 6dba7d30b1687583b654104df7bebf6c89eb53bc | |
parent | 2ac4236ccc43f76d01026c6ea8620f50add59da7 (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
-rwxr-xr-x | jenkins.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |