bug 484386 - TEST_PATH ignored on "make mochitest-browser-chrome", r=Neil
authorRobert Kaiser <kairo@kairo.at>
Sat, 21 Mar 2009 22:16:42 +0100
changeset 2256 573fb4c0ec8bd028b0171609caaa73d14c357dfe
parent 2255 2a1ab3ad5b8f0aab20964bf09065008462db34ce
child 2257 9b8d068b160bf8321af8c2d2bdf43a8b933a3ce7
push idunknown
push userunknown
push dateunknown
reviewersNeil
bugs484386
bug 484386 - TEST_PATH ignored on "make mochitest-browser-chrome", r=Neil
suite/build.mk
--- a/suite/build.mk
+++ b/suite/build.mk
@@ -92,17 +92,24 @@ install::
 
 source-package::
 	@$(MAKE) -C suite/installer source-package
 
 ifndef COMM_BUILD
 # mochitests need to be run from the Mozilla build system
 ifdef ENABLE_TESTS
 # Implemented in testing/testsuite-targets.mk
+
+ifdef TEST_PATH
+BROWSER_TEST_PATH = --test-path=$(TEST_PATH)
+else
+BROWSER_TEST_PATH =
+endif
+
 mochitest-browser-chrome:
-	$(RUN_MOCHITEST) --browser-chrome
+	$(RUN_MOCHITEST) --browser-chrome $(BROWSER_TEST_PATH)
 	$(CHECK_TEST_ERROR)
 
 mochitest:: mochitest-browser-chrome
 
 .PHONY: mochitest-browser-chrome
 endif
 endif