From 9a15f2f077736b7d52ce01b6102ee9a495f02452 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 7 Jul 2009 23:01:23 -0600 Subject: [PATCH] Skip parallel tests when zsh 'set -m' fails. * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m is not supported. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ tests/autotest.at | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ff8e9ce53..fed334ea7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-07-07 Eric Blake + Skip parallel tests when zsh 'set -m' fails. + * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m + is not supported. + Reported by Ralf Wildenhues. + Make parallel testsuite more portable. * lib/autotest/general.m4 (AT_INIT) : Avoid <>; instead open write descriptor in each group and read descriptor in diff --git a/tests/autotest.at b/tests/autotest.at index b4ba887c7..9bdb728ed 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -992,8 +992,9 @@ m4_define([AT_SKIP_PARALLEL_TESTS], # limited conditions; help is appreciated in widening this test base. AT_CHECK([${CONFIG_SHELL-$SHELL} -c 'test -n "${BASH_VERSION+set}]]dnl [[${ZSH_VERSION+set}${TEST_PARALLEL_AUTOTEST+set}"' || exit 77]) -# The parallel scheduler requires mkfifo to work. +# The parallel scheduler requires mkfifo and job control to work. AT_CHECK([mkfifo fifo || exit 77]) +AT_CHECK([${CONFIG_SHELL-$SHELL} -c '(set -m && set +m) || exit 77']) ]) -- 2.47.3