mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
test: allow disabling timeout with NOTMUCH_TEST_TIMEOUT=0
To aid in diagnosing test suite tooling that interacts poorly with coreutils' timeout, it's handy to be able to bypass it entirely. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
This commit is contained in:
parent
9dedb23b47
commit
fa9d8b7026
1 changed files with 7 additions and 2 deletions
|
@ -33,8 +33,13 @@ rm -rf $NOTMUCH_BUILDDIR/test/test-results
|
||||||
# Test for timeout utility
|
# Test for timeout utility
|
||||||
if command -v timeout >/dev/null; then
|
if command -v timeout >/dev/null; then
|
||||||
TEST_TIMEOUT=${NOTMUCH_TEST_TIMEOUT:-2m}
|
TEST_TIMEOUT=${NOTMUCH_TEST_TIMEOUT:-2m}
|
||||||
|
if [ "$TEST_TIMEOUT" = 0 ]; then
|
||||||
|
TEST_TIMEOUT_CMD=""
|
||||||
|
echo "INFO: timeout disabled"
|
||||||
|
else
|
||||||
TEST_TIMEOUT_CMD="timeout $TEST_TIMEOUT"
|
TEST_TIMEOUT_CMD="timeout $TEST_TIMEOUT"
|
||||||
echo "INFO: using $TEST_TIMEOUT timeout for tests"
|
echo "INFO: using $TEST_TIMEOUT timeout for tests"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
TEST_TIMEOUT_CMD=""
|
TEST_TIMEOUT_CMD=""
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue