commit: 3559ba4b30934da041801f1a150fd28d2d64002c Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Fri Sep 11 06:47:17 2015 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Fri Sep 11 06:47:17 2015 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=3559ba4b
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 <AT> gentoo.org> tests/atlocal.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. +:
