Fix grep invocation in Erlang test.

* tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
This commit is contained in:
Paolo Bonzini 2009-08-02 08:24:00 +02:00
parent dab22fbfe1
commit 683a0f1df7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-08-02 Paolo Bonzini <bonzini@gnu.org>
Use exit code to detect no occurrences with grep.
* tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
2009-08-01 Romain Lenglet <romain.lenglet@laposte.net>
Paolo Bonzini <bonzini@gnu.org>

View File

@ -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])