tests: relax the root-tests cross-check
authorJim Meyering <meyering@redhat.com>
Sat, 29 May 2010 19:22:40 +0000 (21:22 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 30 Jan 2011 19:44:11 +0000 (20:44 +0100)
* cfg.mk (sc_root_tests): Allow spaces before "require_root_",
now that tests/cp/sparse-fiemap has a conditional use.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 4df74f0..d0d68cc 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -80,7 +80,7 @@ sc_root_tests:
        @if test -d tests \
              && grep check-root tests/Makefile.am>/dev/null 2>&1; then \
        t1=sc-root.expected; t2=sc-root.actual;                         \
-       grep -nl '^require_root_$$'                                     \
+       grep -nl '^ *require_root_$$'                                   \
          $$($(VC_LIST) tests) |sed s,tests/,, |sort > $$t1;            \
        sed -n '/^root_tests =[  ]*\\$$/,/[^\]$$/p'                     \
          $(srcdir)/tests/Makefile.am                                   \