From: Paolo Bonzini Date: Sun, 2 Aug 2009 06:24:00 +0000 (+0200) Subject: Fix grep invocation in Erlang test. X-Git-Tag: v2.65~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=683a0f1df70e85a7a55622a13d7573fdff4bf8a0;p=thirdparty%2Fautoconf.git Fix grep invocation in Erlang test. * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation. --- diff --git a/ChangeLog b/ChangeLog index bd77e86d5..8e88f2c5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-02 Paolo Bonzini + + Use exit code to detect no occurrences with grep. + * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation. + 2009-08-01 Romain Lenglet Paolo Bonzini diff --git a/tests/autotest.at b/tests/autotest.at index 162bbb7a4..7b8e0eef6 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -1512,7 +1512,7 @@ AT_CHECK([cd t && $CONFIG_SHELL ./suite], [], [ignore]) if test "$HAVE_EUNIT" = yes; then AT_CHECK([grep 1.*successful t/suite.log], [], [ignore]) - AT_CHECK([grep -v skipped t/suite.log], [], [ignore]) + AT_CHECK([grep skipped t/suite.log], [1], [ignore]) else AT_CHECK([grep 1.*skipped t/suite.log], [], [ignore]) AT_CHECK([grep 0.*successful t/suite.log], [], [ignore])