Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown 00c7fc4efb Bug 1560073 - Change default android package name for most mach test commands; r=snorp,nalexander,maja_zf
Use the geckoview TestRunnerActivity, org.mozilla.geckoview.test, by default
for all types of mochitests, reftests, and web-platform tests. TRA is already
the default for gtest and geckoview-junit. Fennec, based on ANDROID_PACKAGE_NAME,
remains the default for robocop and marionette-test and I have no plans to
change those. There is a related issue for xpcshell-test -- not the package
name, but the default apk -- but I am reluctant to handle that until bug 1553225
is resolved.

Differential Revision: https://phabricator.services.mozilla.com/D35479

--HG--
extra : moz-landing-system : lando
2019-06-26 02:34:49 +00:00
Andrew Halberstadt b7359b79da Bug 1429158 - Use 'mach' format by default for one-click-loaner mochitests, r=jmaher
This uses the 'mach' format by default when running mochitests
from a one-click-loaner. This is now consistent with the default
when running mochitests locally.

MozReview-Commit-ID: LYQbGm71Of8

--HG--
extra : rebase_source : a0a042ae1f7af8b09f80cf1b4dc33a58e67f333e
2018-01-09 14:34:27 -05:00
Sebastian Hengst 73fac0091d Backed out changeset dbe60b600dc0 (bug 1397853) for failining linter py-compat at testing/mochitest/runtests.py:2236. r=backout 2017-09-28 14:58:36 +02:00
Steve Armand f8318d16e8 Bug 1397853 - Enable py2 and py3 linter on testing/mochitest. r=ahal
MozReview-Commit-ID: EhkNhyFHDox

--HG--
extra : rebase_source : 5200a985034c7ca0a494bc7d02a4c842e85dec3a
2017-09-24 21:28:25 -04:00
Andrew Halberstadt 1abba2da72 Bug 1334209 - Activate mozharness virtualenv in-process from one click loaner mach commands, r=jmaher
Previously the run-wizard script would add a command to source the virtualenv in ~/.bashrc after
mozharness finished setting things up. This is fragile, assumes people are using bash, etc. Plus
it appeared to intermittently fail for some users.

Instead, this activates the virtualenv directly from individual mach commands that need it. This
guarantees we will always be using the virtualenv if required (and won't be using it if not). The
'activate_this.py' script is invoked the same way that we do it for in-tree mach commands:
https://dxr.mozilla.org/mozilla-central/rev/9c06e744b1befb3a2e2fdac7414ce18220774a1d/python/mozbuild/mozbuild/virtualenv.py#456

MozReview-Commit-ID: CfcoiVJXQTl

--HG--
extra : rebase_source : da01d1ce1bd9b41c89922e989f857c4de8c09341
2017-01-31 11:53:36 -05:00
Andrew Halberstadt 8f496efee0 Bug 1312739 - Use ALL_FLAVORS dict when running mochitest from an interactive loaner, r=jmaher
MozReview-Commit-ID: Kpxepe9KecV

--HG--
extra : rebase_source : 85ad09b9cdb56d10a1ed01f002a25754554dea3c
2016-12-20 11:24:33 -05:00
Phil Ringnalda c97f1c6da6 Backed out 3 changesets (bug 1312739) for "'NoneType' object has no attribute 'startswith'" bustage in everything mochitest
CLOSED TREE

Backed out changeset 1f3f88337227 (bug 1312739)
Backed out changeset ecb1d15e8075 (bug 1312739)
Backed out changeset b2adce340421 (bug 1312739)
2016-12-21 20:19:24 -08:00
Andrew Halberstadt 0dae445678 Bug 1312739 - Use ALL_FLAVORS dict when running mochitest from an interactive loaner, r=jmaher
MozReview-Commit-ID: Kpxepe9KecV

--HG--
extra : rebase_source : f561c034408e1aedb9318fcc8457b961aeef1668
2016-12-20 11:24:33 -05:00
Andrew Halberstadt c7c5495b4a Bug 1311723 - Look for mozinfo.json in the correct place when running interactive loaners, r=armenzg
MozReview-Commit-ID: K8fqlo0x4Oc

--HG--
extra : rebase_source : dbc88b48244f3f98b4f64fe12c57bb6e4fb119dc
2016-10-21 12:24:17 -04:00
Andrew Halberstadt 97f0fbd35d Bug 1300163 - Add support for Android mochitests to interactive loaners, r=armenzg
This will allow developers to request a loaner for an Android mochitest job and then use
|mach mochitest| to run tests.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : fba9adb6e2d50cc9ac27532bc91b5eb1d909d874
2016-09-02 14:43:53 -04:00
Andrew Halberstadt 4fecf32869 Bug 1300163 - Reuse the 'e10s' value from the mozharness config on interactive loaners, r=armenzg
I noticed that if you request a loaner for a non-e10s job then run mach, it will be run with e10s
enabled. The mach command should accurately reflect the type of job that got requested. This patch
grabs the 'e10s' argument from the mozharness localconfig.json and uses that.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : 6f7b45146bb7f3431c242d92b4206d41f7217c03
2016-09-02 14:42:36 -04:00
Andrew Halberstadt fb05814e0d Bug 1300163 - Lazy load certain mach context attributes using the 'key' mechanism, r=armenzg
You can set attributes on a mach context by using the 'key' argument to the context_handler. Basically,
whatever gets returned by the handler when <key> is passed in, will get set (i.e cached) on the context
object for fast retrieval next time. This is a way to lazy load these attributes.

Previously I was setting functions like 'find_firefox()' on the context object, and then having the
mach_commands call that directly. But this way is much cleaner.

Now, the loaded 'mozharness_config' can be stored as an attribute on the context. Also 'find_firefox()'
is now an attribute called 'firefox_bin'.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : af5e32e05a29b8e91d4cd0005689baa8079ec137
2016-09-02 14:35:14 -04:00
Andrew Halberstadt e920337e70 Bug 1288827 - Allow running mochitest from test-package without specifying --appname, r=armenzg
Because it is now possible for options.app to get set after 'parse_args' time, we need to make sure
the argument validation happens later. To accomplish this we pass in the parser instance to
'run_test_harness' and do parser.validate there. This unfortunately requires some minor uses of
global to accomplish easily due to how mach handles parsers.

MozReview-Commit-ID: s3Js1aZlSE

--HG--
extra : rebase_source : 3a94debda3dbed839074094707cadf32e7f7337c
2016-07-20 11:13:30 -04:00
Carsten "Tomcat" Book e7b290ff7c Backed out changeset 6dcb52d270c7 (bug 1288827) for breaking mochitests 2016-07-28 17:04:42 +02:00
Andrew Halberstadt 142c93927d Bug 1288827 - Allow running mochitest from test-package without specifying --appname, r=armenzg
Because it is now possible for options.app to get set after 'parse_args' time, we need to make sure
the argument validation happens later. To accomplish this we pass in the parser instance to
'run_test_harness' and do parser.validate there. This unfortunately requires some minor uses of
global to accomplish easily due to how mach handles parsers.

MozReview-Commit-ID: s3Js1aZlSE

--HG--
extra : rebase_source : d5aa12dbdb8acd116a27f768eb8ce7f10293504b
2016-07-20 11:13:30 -04:00
Andrew Halberstadt 4cea585419 Bug 1171602 - Run mochitest using mach from a tests.zip, r=chmanchester
--HG--
extra : commitid : 7UHH28yy81E
extra : rebase_source : e6800f9d6ff6336991f1d4b8f2d975083b9f7751
2015-05-26 10:12:51 -04:00