mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 13:44:12 +01:00
test: use --minversion to detect GNU Parallel.
Based on a suggestion of Ole Tange [1]. [1]: id:CA+4vN7x6jp4HCiEybZ=5g+2X6Pa7etBFX3Bbd=UYty37gR6wEQ@mail.gmail.com
This commit is contained in:
parent
5734d8bd32
commit
c966fa6439
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ RES=0
|
||||||
# Run the tests
|
# Run the tests
|
||||||
if test -z "${NOTMUCH_TEST_SERIALIZE-}" && command -v parallel >/dev/null ; then
|
if test -z "${NOTMUCH_TEST_SERIALIZE-}" && command -v parallel >/dev/null ; then
|
||||||
test -t 1 && export COLORS_WITHOUT_TTY=t || :
|
test -t 1 && export COLORS_WITHOUT_TTY=t || :
|
||||||
if parallel --version 2>&1 | grep -q GNU ; then
|
if parallel --minversion 0 >/dev/null 2>&1 ; then
|
||||||
echo "INFO: running tests with GNU parallel"
|
echo "INFO: running tests with GNU parallel"
|
||||||
printf '%s\n' $TESTS | $TEST_TIMEOUT_CMD parallel || RES=$?
|
printf '%s\n' $TESTS | $TEST_TIMEOUT_CMD parallel || RES=$?
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue