Bug 1270357 Expose PYTHON from build config to test r?kmag draft
authorAndrew Swan <aswan@mozilla.com>
Wed, 18 May 2016 10:28:17 -0700
changeset 368449 ca6f30550b3395af7902040a78cf6179b4949eee
parent 368448 947c6b8e19ef5290658d86edd545f37f3713749b
child 368450 0f33dc7843119e31d44666d03277ad11a4c394be
child 368931 33cf3f282174c97a7071393f9f636c05124c7630
child 369045 61071b41bb08cb22f021eef1cc91c575237709c8
push id18537
push useraswan@mozilla.com
push dateWed, 18 May 2016 18:58:04 +0000
reviewerskmag
bugs1270357
milestone49.0a1
Bug 1270357 Expose PYTHON from build config to test r?kmag MozReview-Commit-ID: 1fPAdlgxeC0
.eslintignore
toolkit/components/extensions/moz.build
toolkit/components/extensions/test/mochitest/test_constants.js
--- a/.eslintignore
+++ b/.eslintignore
@@ -209,16 +209,17 @@ toolkit/components/osfile/**
 # External code:
 toolkit/components/microformats/test/**
 toolkit/components/reader/Readability.js
 toolkit/components/reader/JSDOMParser.js
 
 # Uses preprocessing
 toolkit/content/widgets/videocontrols.xml
 toolkit/content/widgets/wizard.xml
+toolkit/components/extensions/test/mochitest/test_constants.js
 toolkit/components/jsdownloads/src/DownloadIntegration.jsm
 toolkit/components/search/nsSearchService.js
 toolkit/components/url-classifier/**
 toolkit/components/urlformatter/nsURLFormatter.js
 toolkit/identity/FirefoxAccounts.jsm
 toolkit/modules/AppConstants.jsm
 toolkit/mozapps/downloads/nsHelperAppDlg.js
 toolkit/mozapps/extensions/internal/AddonConstants.jsm
--- a/toolkit/components/extensions/moz.build
+++ b/toolkit/components/extensions/moz.build
@@ -17,8 +17,14 @@ EXTRA_JS_MODULES += [
 
 DIRS += ['schemas']
 
 JAR_MANIFESTS += ['jar.mn']
 
 MOCHITEST_MANIFESTS += ['test/mochitest/mochitest.ini']
 MOCHITEST_CHROME_MANIFESTS += ['test/mochitest/chrome.ini']
 XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell/xpcshell.ini']
+
+DEFINES['PYTHON'] = CONFIG['PYTHON']
+OBJDIR_PP_FILES._tests.testing.mochitest.chrome.toolkit.components.extensions.test.mochitest += [
+    'test/mochitest/test_constants.js',
+]
+
new file mode 100644
--- /dev/null
+++ b/toolkit/components/extensions/test/mochitest/test_constants.js
@@ -0,0 +1,6 @@
+#filter substitution
+
+"use strict";
+
+/* global PYTHON */
+this.PYTHON = String.raw`@PYTHON@`;