diff options
| author | David Bremner <david@tethera.net> | 2021-08-02 08:21:42 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-08-03 20:29:47 -0300 |
| commit | c966fa6439f35dd28c31fcd5c94465feef21151f (patch) | |
| tree | 6e67fdbbdd871d10ed3b571ce1da333e6776552d /test/notmuch-test | |
| parent | 5734d8bd3220c99972290949c204091116c8b200 (diff) | |
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
Diffstat (limited to 'test/notmuch-test')
| -rwxr-xr-x | test/notmuch-test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/notmuch-test b/test/notmuch-test index ce142f7c..14747bdb 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -51,7 +51,7 @@ RES=0 # Run the tests if test -z "${NOTMUCH_TEST_SERIALIZE-}" && command -v parallel >/dev/null ; then 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" printf '%s\n' $TESTS | $TEST_TIMEOUT_CMD parallel || RES=$? else |
