Fix bug 1067007 - [mozmill] tests do not work after TB build changes. r/a=Standard8
authorPhilipp Kewisch <mozilla@kewis.ch>
Mon, 15 Sep 2014 10:10:06 +0200
changeset 16802 f1fe79198f96db21dd007ba7ac75fbdd9ac41cdf
parent 16801 0c3c6ce0353fda9ba680349442c1c1445ed2f9b1
child 16803 574f4f9a619c51fea29277bda9efbb41efd6c904
push id10453
push usermozilla@kewis.ch
push dateMon, 15 Sep 2014 11:18:43 +0000
treeherdercomm-central@f1fe79198f96 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1067007
Fix bug 1067007 - [mozmill] tests do not work after TB build changes. r/a=Standard8
calendar/test/mozmill/Makefile.in
mail/testsuite-targets.mk
--- a/calendar/test/mozmill/Makefile.in
+++ b/calendar/test/mozmill/Makefile.in
@@ -4,34 +4,34 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-MOZMILLDIR=$(DEPTH)/mozilla/_tests/mozmill
+MOZMILLDIR=$(DEPTH)/_tests/mozmill
 ifeq ($(OS_ARCH),WINNT)
 VIRTUALENV_BIN = $(MOZMILLDIR)/../mozmill-virtualenv/Scripts
 else
 VIRTUALENV_BIN = $(MOZMILLDIR)/../mozmill-virtualenv/bin
 endif
 MOZMILLPYTHON = $(abspath $(VIRTUALENV_BIN)/python$(BIN_SUFFIX))
 
 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
 # Mac options
 APP_NAME = $(MOZ_APP_DISPLAYNAME)
 ifdef MOZ_DEBUG
 APP_NAME := $(APP_NAME)Debug
 endif
-MOZMILLPROGRAM = $(DIST)/$(APP_NAME).app/
+MOZMILLPROGRAM = $(abspath $(DIST)/$(APP_NAME).app/)
 else
 # Non-mac options
-MOZMILLPROGRAM = $(DIST)/bin/thunderbird$(BIN_SUFFIX)
+MOZMILLPROGRAM = $(abspath $(DIST)/bin/thunderbird$(BIN_SUFFIX))
 endif
 
 check-no-solo = $(foreach solo,SOLO_TEST SOLO_FILE,$(if $($(solo)),$(error $(subst SOLOVAR,$(solo),$(1)))))
 find-solo-test = $(if $(and $(SOLO_TEST),$(SOLO_FILE)),$(error Both SOLO_TEST and SOLO_FILE are specified. You may only specify one.),$(if $(SOLO_TEST),$(SOLO_TEST),$(if $(SOLO_FILE),$(SOLO_FILE),$(error SOLO_TEST or SOLO_FILE needs to be specified.))))
 
 include $(topsrcdir)/config/rules.mk
 
 # Calendar uses both its own shared modules and those from Thunderbird. Since
--- a/mail/testsuite-targets.mk
+++ b/mail/testsuite-targets.mk
@@ -45,19 +45,20 @@ mozmill-one:
 	--symbols-path=$(abspath $(DIST)/crashreporter-symbols) \
 	--plugins-path=$(abspath $(DIST)/plugins) \
 	$(MOZMILL_EXTRA)
 
 # We need to add the mozmill tests to the package for tests.
 ifndef UNIVERSAL_BINARY
 # If Lightning is enabled, also stage the lightning extension
 ifdef MOZ_CALENDAR
-package-tests: stage-calendar
+package-tests: stage-mozmill stage-calendar
+else
+package-tests: stage-mozmill
 endif
-package-tests: stage-mozmill
 endif
 
 stage-mozmill: make-stage-dir
 	$(MAKE) -C $(DEPTH)/mail/test/mozmill stage-package
 
 stage-calendar: make-stage-dir
 	$(MAKE) -C $(DEPTH)/calendar/lightning stage-package