[m-rev.] diff: tests/Mmake.common: fix TESTS_TO_RUN bug
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Oct 18 14:59:35 AEST 2002
Estimated hours taken: 0.25
Branches: main
tests/Mmake.common:
Fix a bug with the code for re-runnning just the tests that
failed last time: filter out test names containing "/",
so that we don't try to run tests from a subdirectory in
the parent directory.
Workspace: /home/ceres/fjh/mercury
Index: tests/Mmake.common
===================================================================
RCS file: /home/mercury1/repository/tests/Mmake.common,v
retrieving revision 1.33
diff -u -d -r1.33 Mmake.common
--- tests/Mmake.common 16 Oct 2002 04:35:31 -0000 1.33
+++ tests/Mmake.common 18 Oct 2002 04:54:08 -0000
@@ -226,8 +226,9 @@
endif
ifdef TESTS_TO_RUN
-THIS_DIR_TESTS_TO_RUN := $(patsubst $(THIS_DIR)/%,%,\
- $(filter $(THIS_DIR)/%,$(TESTS_TO_RUN)))
+THIS_DIR_TESTS_TO_RUN := $(shell echo $(patsubst $(THIS_DIR)/%,%,\
+ $(filter $(THIS_DIR)/%,$(TESTS_TO_RUN))) \
+ | tr ' ' '\n' | grep -v /)
else
THIS_DIR_TESTS_TO_RUN := $(TESTS)
endif
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list