]> git.notmuchmail.org Git - notmuch/commitdiff
test: check for GNU parallel with --version options
authorTobias Backer Dirks <omgitsaheadcrab@gmail.com>
Sat, 24 Apr 2021 20:41:03 +0000 (21:41 +0100)
committerDavid Bremner <david@tethera.net>
Sat, 24 Apr 2021 23:06:41 +0000 (20:06 -0300)
The lastest versions of GNU parallel no longer make mention of GNU
within their help output. This causes the test script to mistakenly use
the moreutils parallel execution. In order to fix this, while
maintaining compatibility with previous versions of GNU parallel,
--version should be used.

Signed-off-by: Tobias Backer Dirks <omgitsaheadcrab@gmail.com>
test/notmuch-test

index b58fd3b36f942a91fbe0ac9708d53aef9fdf4e1e..91909264cc94b6e72ee3778b6b15cfeaa53232f5 100755 (executable)
@@ -50,7 +50,7 @@ META_FAILURE=
 # 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 -h | grep -q GNU ; then
+    if parallel --version | grep -q GNU ; then
         echo "INFO: running tests with GNU parallel"
         printf '%s\n' $TESTS | $TEST_TIMEOUT_CMD parallel
     else