diff --git a/layout/tools/reftest/Makefile.in b/layout/tools/reftest/Makefile.in deleted file mode 100644 index 1baf9594bc2b..000000000000 --- a/layout/tools/reftest/Makefile.in +++ /dev/null @@ -1,14 +0,0 @@ -# vim: set shiftwidth=8 tabstop=8 autoindent noexpandtab copyindent: -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -_DEST_DIR = $(DEPTH)/_tests/reftest - -include $(topsrcdir)/config/rules.mk - -# copy harness and the reftest extension bits to $(_DEST_DIR) -# This needs to happen after jar.mn handling from rules.mk included above. -# The order of the :: rules ensures that. -libs:: - (cd $(DIST)/xpi-stage && tar $(TAR_CREATE_FLAGS) - reftest) | (cd $(_DEST_DIR) && tar -xf -) diff --git a/layout/tools/reftest/reftestcommandline.py b/layout/tools/reftest/reftestcommandline.py index 3e49b25b4997..96727b43c6fa 100644 --- a/layout/tools/reftest/reftestcommandline.py +++ b/layout/tools/reftest/reftestcommandline.py @@ -313,8 +313,8 @@ class ReftestArgumentsParser(argparse.ArgumentParser): if options.reftestExtensionPath is None: if self.build_obj is not None: - reftestExtensionPath = os.path.join(self.build_obj.topobjdir, "_tests", - "reftest", "reftest") + reftestExtensionPath = os.path.join(self.build_obj.distdir, + "xpi-stage", "reftest") else: reftestExtensionPath = os.path.join(here, "reftest") options.reftestExtensionPath = os.path.normpath(reftestExtensionPath) @@ -322,8 +322,8 @@ class ReftestArgumentsParser(argparse.ArgumentParser): if (options.specialPowersExtensionPath is None and options.suite in ["crashtest", "jstestbrowser"]): if self.build_obj is not None: - specialPowersExtensionPath = os.path.join(self.build_obj.topobjdir, "_tests", - "reftest", "specialpowers") + specialPowersExtensionPath = os.path.join(self.build_obj.distdir, + "xpi-stage", "specialpowers") else: specialPowersExtensionPath = os.path.join(here, "specialpowers") options.specialPowersExtensionPath = os.path.normpath(specialPowersExtensionPath) diff --git a/python/mozbuild/mozbuild/action/test_archive.py b/python/mozbuild/mozbuild/action/test_archive.py index a5b01e710a94..df19d5a54f03 100644 --- a/python/mozbuild/mozbuild/action/test_archive.py +++ b/python/mozbuild/mozbuild/action/test_archive.py @@ -409,7 +409,19 @@ ARCHIVE_FILES = { 'testing/crashtest/crashtests.list', ], 'dest': 'reftest/tests', - } + }, + { + 'source': buildconfig.topobjdir, + 'base': 'dist/xpi-stage', + 'pattern': 'reftest/**', + 'dest': 'reftest' + }, + { + 'source': buildconfig.topobjdir, + 'base': 'dist/xpi-stage', + 'pattern': 'specialpowers/**', + 'dest': 'reftest' + }, ], 'talos': [ { diff --git a/testing/specialpowers/Makefile.in b/testing/specialpowers/Makefile.in index edf6cad53121..e42d0650efbe 100644 --- a/testing/specialpowers/Makefile.in +++ b/testing/specialpowers/Makefile.in @@ -3,16 +3,4 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -TEST_EXTENSIONS_DIR = $(DEPTH)/testing/specialpowers XPI_PKGNAME = specialpowers@mozilla.org - -include $(topsrcdir)/config/rules.mk - -libs-preqs = \ - $(call mkdir_deps,$(TEST_EXTENSIONS_DIR)) \ - $(NULL) - -libs:: $(libs-preqs) - (cd $(DIST)/xpi-stage && tar $(TAR_CREATE_FLAGS) - $(XPI_NAME)) | (cd $(TEST_EXTENSIONS_DIR) && tar -xf -) - $(NSINSTALL) -D $(DEPTH)/_tests/reftest/specialpowers - cp -RL $(DEPTH)/testing/specialpowers/specialpowers $(DEPTH)/_tests/reftest