Bug 457753 - Make sure the package path directory exists before trying to package tests into it. r=ted
authorChris AtLee <catlee@mozilla.com>
Tue, 29 Sep 2009 12:45:22 -0400
changeset 33270 bb2505a8073056a6f25a83faa73d5fbbfcd2f325
parent 33269 656089bd4c44c42a4824079d3c9d47fde87e4466
child 33271 eec5815b761f61c62b28770a2b59c4d84de55fcd
push idunknown
push userunknown
push dateunknown
reviewersted
bugs457753
milestone1.9.3a1pre
Bug 457753 - Make sure the package path directory exists before trying to package tests into it. r=ted
testing/testsuite-targets.mk
--- a/testing/testsuite-targets.mk
+++ b/testing/testsuite-targets.mk
@@ -108,16 +108,17 @@ xpcshell-tests:
 
 
 # Package up the tests and test harnesses
 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
 
 PKG_STAGE = $(DIST)/test-package-stage
 
 package-tests: stage-mochitest stage-reftest stage-xpcshell
+	$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
 	@(cd $(PKG_STAGE) && tar $(TAR_CREATE_FLAGS) - *) | bzip2 -f > $(DIST)/$(PKG_PATH)$(TEST_PACKAGE)
 
 make-stage-dir:
 	rm -rf $(PKG_STAGE) && $(NSINSTALL) -D $(PKG_STAGE) && $(NSINSTALL) -D $(PKG_STAGE)/bin && $(NSINSTALL) -D $(PKG_STAGE)/bin/components && $(NSINSTALL) -D $(PKG_STAGE)/certs
 
 stage-mochitest: make-stage-dir
 	$(MAKE) -C $(DEPTH)/testing/mochitest stage-package