tests: fix a spurious testsuite failure on Solaris
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 26 Nov 2012 11:22:51 +0000 (12:22 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 26 Nov 2012 11:23:02 +0000 (12:23 +0100)
Reported in automake bug#11524.

* t/amhello-binpkg.sh: When non-GNU tar is in use, relax grepping of
"tar cvf ..." output a little more.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/amhello-binpkg.sh

index c1d2575..f6988ce 100755 (executable)
@@ -44,8 +44,8 @@ if tar --version </dev/null | grep GNU; then
 END
 else
   : Be laxer with other tar implementations, to avoid spurious failures.
-  $EGREP '(^| )\./usr/bin/hello'$EXEEXT'( |$)' tar.got
-  $EGREP '(^| )\./usr/share/doc/amhello/README( |$)' tar.got
+  $EGREP '(^| )(\./)?usr/bin/hello'$EXEEXT'( |$)' tar.got
+  $EGREP '(^| )(\./)?usr/share/doc/amhello/README( |$)' tar.got
 fi
 
 :