diff options
author | 2015-09-11 02:47:17 -0400 | |
---|---|---|
committer | 2015-09-11 02:47:17 -0400 | |
commit | 3559ba4b30934da041801f1a150fd28d2d64002c (patch) | |
tree | a8de65cf2b1e3845491bab9d6aa0c9c9ca1df756 /tests | |
parent | libsandbox: fix building w/gcc-5 (diff) | |
download | sandbox-3559ba4b30934da041801f1a150fd28d2d64002c.tar.gz sandbox-3559ba4b30934da041801f1a150fd28d2d64002c.tar.bz2 sandbox-3559ba4b30934da041801f1a150fd28d2d64002c.zip |
tests: make sure we ignore stty exit status
If the stty step fails (for any reason really), the main testrunner
will abort with a weird error message:
$ make check
...
/bin/sh './testsuite' AUTOTEST_PATH='src:tests' --jobs=`getconf _NPROCESSORS_ONLN || echo 1`
testsuite: error: invalid content: atlocal
...
Make sure we ignore stty's exit status, and we put a final comment/$?
reset at the end of the script.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/atlocal.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in index 8435f61..b9a631b 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -21,4 +21,7 @@ fi export SANDBOX_VERBOSE=0 # If the terminal has this flag set, the tests get all messed up. -stty -tostop 2>/dev/null +stty -tostop 2>/dev/null || : + +# This script must finish with ($? == 0) else the autotest runner gets upset. +: |