Bug 1393607 Do not package tests if they are not enabled draft
authorTom Ritter <tom@mozilla.com>
Tue, 29 Aug 2017 12:34:40 -0500
changeset 655137 f7a1c0b962495150fa9d68df3be7790616f230d1
parent 655136 6996398ef9ef175625072252874e9bedb8ee2e21
child 656078 24c6f168fa9b4ce1ba54a57351a289a7fc5bb8cc
push id76778
push userbmo:tom@mozilla.com
push dateTue, 29 Aug 2017 17:35:26 +0000
bugs1393607
milestone57.0a1
Bug 1393607 Do not package tests if they are not enabled MozReview-Commit-ID: 1wQV41Nf8V5
build/moz-automation.mk
--- a/build/moz-automation.mk
+++ b/build/moz-automation.mk
@@ -1,13 +1,18 @@
 #
 # 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/.
 
+ifndef ENABLE_TESTS
+# We can't package tests if they aren't enabled.
+MOZ_AUTOMATION_PACKAGE_TESTS = 0
+endif
+
 ifneq (,$(filter automation/%,$(MAKECMDGOALS)))
 ifeq (4.0,$(firstword $(sort 4.0 $(MAKE_VERSION))))
 MAKEFLAGS += --output-sync=target
 else
 .NOTPARALLEL:
 endif
 endif