test/Makefile: fixed TESTS parsing
authorHarald Hoyer <harald@redhat.com>
Wed, 1 Aug 2012 10:50:54 +0000 (12:50 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 1 Aug 2012 10:50:54 +0000 (12:50 +0200)
test/Makefile

index 3411035..97a7aad 100644 (file)
@@ -5,7 +5,7 @@ check:
        @for i in TEST-[0-9]*; do \
                [ -d $$i ] || continue ; \
                [ -f $$i/Makefile ] || continue ; \
-               if [ -n "$$TESTS" ]; then t=$${i##TEST-}; t=$${t%-*}; [ "$${TESTS#*$$t*}" != "$$TESTS" ] || continue; fi; \
+               if [ -n "$$TESTS" ]; then t=$${i##TEST-}; t=$${t%%-*}; [ "$${TESTS#*$$t*}" != "$$TESTS" ] || continue; fi; \
                $(MAKE) -C $$i all ; \
        done