bug 1546933: remote: drop unnecessary flags for ./mach test; r=me a=doc
authorAndreas Tolfsen <ato@sny.no>
Thu, 25 Apr 2019 11:47:31 +0100
changeset 530095 b79b875c82881c48b3529daa6da012a1095367bb
parent 530094 4243e8a01b2e180460b19b933b0f448cfcc2facc
child 530096 8988649ab71dfb53a9d083be8e34f3547a2c4477
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, doc
bugs1546933
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1546933: remote: drop unnecessary flags for ./mach test; r=me a=doc The tests are instrumented to automatically set the remote.enabled preference as part of their manifests. In the case of xpcshell, it is also technically not need it as they do not trigger the command-line-handler.js code path. DONTBUILD
remote/doc/Testing.md
--- a/remote/doc/Testing.md
+++ b/remote/doc/Testing.md
@@ -1,35 +1,35 @@
 Testing
 =======
 
 The remote agent has unit- and functional tests located under
 `remote/test/{unit,browser}`.
 
 You may run all the tests locally using `mach test` like this:
 
-	% ./mach test --setpref "remote.enabled=true" remote/test
+	% ./mach test remote/test
 
 The tests are currently not run on try.
 
 
 Unit tests
 ----------
 
 Because tests are run in parallel and [xpcshell] itself is quite
 chatty, it can sometimes be useful to run the tests in sequence:
 
-	% ./mach xcpshell-test --setpref "remote.enabled=true" --sequential remote/test/unit/test_Assert.js
+	% ./mach xcpshell-test --sequential remote/test/unit/test_Assert.js
 
 The unit tests will appear as part of the `X` jobs on Treeherder.
 
 [xpcshell]: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Writing_xpcshell-based_unit_tests
 
 
 Functional tests
 ----------------
 
 We also have a set of functional [browser chrome] tests located
 under _remote/test/browser_:
 
-	% ./mach mochitest --setpref "remote.enabled=true" -f browser remote/test/browser/browser_cdp.js
+	% ./mach mochitest -f browser remote/test/browser/browser_cdp.js
 
 [browser chrome]: https://developer.mozilla.org/en-US/docs/Mozilla/Browser_chrome_tests