]> git.notmuchmail.org Git - notmuch/commitdiff
test: use --minversion to detect GNU Parallel.
authorDavid Bremner <david@tethera.net>
Mon, 2 Aug 2021 11:21:42 +0000 (08:21 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 3 Aug 2021 23:29:47 +0000 (20:29 -0300)
Based on a suggestion of Ole Tange [1].

[1]: id:CA+4vN7x6jp4HCiEybZ=5g+2X6Pa7etBFX3Bbd=UYty37gR6wEQ@mail.gmail.com

test/notmuch-test

index ce142f7cd73094f880f72d870d913b7613b7a9b4..14747bdbfc44d040cc0118d3d84328a7c69e6e06 100755 (executable)
@@ -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