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

65 Коммитов

Автор SHA1 Сообщение Дата
Joel Maher c8cca1ef20 Bug 1683110 - run compiled tests as python 3 r=aki
run compiled tests w/python3

Differential Revision: https://phabricator.services.mozilla.com/D102619
2021-01-28 18:10:56 +00:00
Sebastian Hengst 316d0eefad Backed out changeset 63ea0e274356 (bug 1683110) on suspicion of causing Android Jittests to fail with exception 2021-01-28 19:07:40 +01:00
Joel Maher 87c5275284 Bug 1683110 - run compiled tests as python 3 r=aki
run compiled tests w/python3

Differential Revision: https://phabricator.services.mozilla.com/D102619
2021-01-22 00:27:11 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Bob Clary 9196bd30dd Bug 1486004 - Part 15 - Update remotecppunittests to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82757

Differential Revision: https://phabricator.services.mozilla.com/D82758
2020-07-17 20:48:51 +00:00
Narcis Beleuzu b1faa2872a Backed out 17 changesets (bug 1486004) for wrench bustage on android.py . CLOSED TREE
Backed out changeset cae730f105d7 (bug 1486004)
Backed out changeset e0094d50a315 (bug 1486004)
Backed out changeset 424425ed98c6 (bug 1486004)
Backed out changeset 551232749abe (bug 1486004)
Backed out changeset 505747095def (bug 1486004)
Backed out changeset 5b1c62c4a4d5 (bug 1486004)
Backed out changeset 0a1c8d50ee69 (bug 1486004)
Backed out changeset 6ef81c676859 (bug 1486004)
Backed out changeset 234e55153fb6 (bug 1486004)
Backed out changeset 2f33b309d746 (bug 1486004)
Backed out changeset 48947692c176 (bug 1486004)
Backed out changeset 473bac8eedd9 (bug 1486004)
Backed out changeset af6afed0a04a (bug 1486004)
Backed out changeset a0e2f91eb4d4 (bug 1486004)
Backed out changeset 138c987440c7 (bug 1486004)
Backed out changeset 6d2e305f4722 (bug 1486004)
Backed out changeset 1181ff03bb05 (bug 1486004)
2020-07-17 23:43:57 +03:00
Bob Clary 49cc236aa8 Bug 1486004 - Part 15 - Update remotecppunittests to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82757

Differential Revision: https://phabricator.services.mozilla.com/D82758
2020-07-16 21:32:55 +00:00
Narcis Beleuzu 1eb115035d Backed out 20 changesets (bug 1486004, bug 1653094) for wrench bustages. CLOSED TREE
Backed out changeset 120c64ebdea3 (bug 1486004)
Backed out changeset b10f105b1c36 (bug 1486004)
Backed out changeset 7f186e6bcccc (bug 1486004)
Backed out changeset cdda7b349cd8 (bug 1486004)
Backed out changeset 650c47e81402 (bug 1486004)
Backed out changeset 2bcca7cf3f1b (bug 1486004)
Backed out changeset e1df276f8a8d (bug 1486004)
Backed out changeset f6f5e7f2bd0a (bug 1486004)
Backed out changeset 1c56cb03ce53 (bug 1486004)
Backed out changeset 582cd190f174 (bug 1486004)
Backed out changeset 7c162e1b3a79 (bug 1486004)
Backed out changeset d1088e178216 (bug 1486004)
Backed out changeset 40763f4afd26 (bug 1486004)
Backed out changeset f20eb5b5a670 (bug 1486004)
Backed out changeset 6349ee0bd63f (bug 1486004)
Backed out changeset 7c23729053f6 (bug 1486004)
Backed out changeset 49586014bd29 (bug 1486004)
Backed out changeset 07971e82ae85 (bug 1653094)
Backed out changeset 47e7295e9c19 (bug 1653094)
Backed out changeset 57a25bbeec37 (bug 1653094)
2020-07-16 17:58:09 +03:00
Bob Clary beebe2c68c Bug 1486004 - Part 15 - Update remotecppunittests to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82757

Differential Revision: https://phabricator.services.mozilla.com/D82758
2020-07-15 21:00:15 +00:00
Mihai Alexandru Michis a1d49fb98d Backed out 17 changesets (bug 1486004) for causing bustages in AccessCheck.h
CLOSED TREE

Backed out changeset 86a0855e1e45 (bug 1486004)
Backed out changeset 4fc98067edc5 (bug 1486004)
Backed out changeset 8ab3f1597fde (bug 1486004)
Backed out changeset b487e98320fb (bug 1486004)
Backed out changeset 4cba8e6bc515 (bug 1486004)
Backed out changeset d0db5eef2343 (bug 1486004)
Backed out changeset 50285a87de6b (bug 1486004)
Backed out changeset 9730c0303810 (bug 1486004)
Backed out changeset 140a9d2362f3 (bug 1486004)
Backed out changeset 9d1ce06f6039 (bug 1486004)
Backed out changeset 88a5a4ab39fa (bug 1486004)
Backed out changeset eb186c92232d (bug 1486004)
Backed out changeset 677f2129750e (bug 1486004)
Backed out changeset 81427a5f2103 (bug 1486004)
Backed out changeset 38d7def3d425 (bug 1486004)
Backed out changeset a9e73221c471 (bug 1486004)
Backed out changeset ebe8c2d5432e (bug 1486004)
2020-07-16 15:29:29 +03:00
Bob Clary d21f8a84de Bug 1486004 - Part 15 - Update remotecppunittests to support unrooted android devices using mozdevice 4.0.0, r=gbrown
Depends on D82757

Differential Revision: https://phabricator.services.mozilla.com/D82758
2020-07-15 21:00:15 +00:00
Geoff Brown da55c8ff29 Bug 1638954 - Run 'mach cppunittest' with python 3; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D77258
2020-05-28 14:45:50 +00:00
Bob Clary 80ab483d5d Bug 1633302 - Remote android tests must use root=True appropriately when dealing with app created files, r=gbrown.
Depends on D72576

Differential Revision: https://phabricator.services.mozilla.com/D72577
2020-04-27 15:45:59 +00:00
Geoff Brown c2d624c725 Bug 1567332 - Report exception stack in android cppunit tests; r=bc
print_exc() gives us information about the location of the failure and also
ensures that the exception name is logged, which android-em task retries rely on.
This also makes cppunit exception handling more consistent with other harnesses
(mochitest, gtest, ...).

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

--HG--
extra : moz-landing-system : lando
2019-07-19 14:23:10 +00:00
Kartikaya Gupta bb83950948 Bug 1558598 - Force WebRender on or off in the cppunit harness. r=ahal
Also adds it to the mach command, which is a little weird, because the
mach command doesn't expose the option but does parse it via the cpp unit
argument parser. So I just exposed it on the mach command and after that
it Just Works for mach.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 09:49:23 +00:00
Marco Castelluccio 52be340076 Bug 1559975 - Add future imports to testing/remotecppunittests.py and testing/runcppunittests.py and remove them from py2 exclusion list r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35246

--HG--
extra : moz-landing-system : lando
2019-06-28 13:47:57 +00:00
Mihai Alexandru Michis 9852c55d11 Backed out 5 changesets (bug 1559982, bug 1559975) for cpp unit test failures due to unsupported operand type. CLOSED TREE
Backed out changeset 2309aac6cea3 (bug 1559975)
Backed out changeset bf5a6d853abd (bug 1559975)
Backed out changeset 0c36f78c971a (bug 1559975)
Backed out changeset 0560cf7df7dc (bug 1559975)
Backed out changeset 4cb64ca524e7 (bug 1559982)
2019-06-27 02:03:31 +03:00
Marco Castelluccio ed545ba83e Bug 1559975 - Add future imports to testing/remotecppunittests.py and testing/runcppunittests.py and remove them from py2 exclusion list r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35246

--HG--
extra : moz-landing-system : lando
2019-06-26 15:31:24 +00:00
Geoff Brown 9fd7271860 Bug 1532462 - Avoid permission error in Android cppunittests on some devices by creating destination directory; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D22034

--HG--
extra : moz-landing-system : lando
2019-03-05 17:03:27 +00:00
Geoff Brown 7c8f4e8f58 Bug 1522689 - Update command line help for several android test commands; r=bc 2019-02-01 07:18:05 -07:00
Geoff Brown e5e351a5a2 Bug 1515189 - Consolidate ADBDevice and ADBAndroid classes; r=bc 2018-12-19 14:04:02 -07:00
Bob Clary 745c5ff6c2 Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
Geoff Brown ca43a015dc Bug 1454404 - Pass adb path from Android mach commands to test harnesses; r=jmaher 2018-04-16 14:05:32 -06:00
Bob Clary cc77040a96 Bug 1440714 - make sure to use root=True with chmod /sdcard/tests/, r=gbrown. 2018-04-10 23:12:28 -07:00
Geoff Brown e2c5753929 Bug 1440714 - Convert Android cppunit test harness to adb.py; r=bc 2018-03-16 09:37:48 -06:00
Andrew Halberstadt f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Geoff Brown 5facbdc255 Bug 1410714 - Help mach tests find adb when running Android tests; r=jmaher 2017-10-24 15:17:25 -06:00
Sylvestre Ledru 61e0724a88 Bug 1406666 - Add testing/*cppun*.py to the list of flake8 compliant code r=ahal
MozReview-Commit-ID: KWsXMRgy4XG

--HG--
extra : rebase_source : b6e82fcd6f5dfb9f823ac5d00c623387b7e95632
2017-10-07 19:45:12 +02:00
Mike Hommey 37d01456dc Bug 1403366 - Don't set MOZILLA_FIVE_HOME from multiple scripts. r=froydnj
It was seldom used before previous commit and now does nothing.

--HG--
extra : rebase_source : e0b1dcdabe798af478e054cde0df65facf25ea21
2017-09-28 11:00:09 +09:00
Sebastian Hengst 2e58d81866 Backed out changeset ff0705eda4bd (bug 1403366) 2017-10-04 01:26:56 +02:00
Mike Hommey 5f2f5b4e64 Bug 1403366 - Don't set MOZILLA_FIVE_HOME from multiple scripts. r=froydnj
It was seldom used before previous commit and now does nothing.

--HG--
extra : rebase_source : e0b1dcdabe798af478e054cde0df65facf25ea21
2017-09-28 11:00:09 +09:00
Sebastian Hengst 6a0c7a5682 Backed out changeset 28b00bdf83a3 (bug 1403366) 2017-09-29 17:19:35 +02:00
Mike Hommey 8142d74974 Bug 1403366 - Don't set MOZILLA_FIVE_HOME from multiple scripts. r=froydnj
It was seldom used before previous commit and now does nothing.

--HG--
extra : rebase_source : 59ba89dbd8de9c0b9361872f3f45504a46f454a2
2017-09-28 11:00:09 +09:00
Simon Garesste 310bdc1c20 Bug 1231810 - Fix files not following flake8 convention r=ted
flake8 was reporting the following issues:
* expected two blank lines
* unexpected spaces around keyword / parameter equals
* wrongly imported modules or multiple imports on one line
* under-indented lines for visual indent
* unidentified name because of a bad call

MozReview-Commit-ID: 7sjDoH4Z89L

--HG--
extra : rebase_source : 376759dd1679b42c07fe3370e6617e3feb7b4f52
2016-01-10 11:19:37 +01:00
Geoff Brown decf51a9ce Bug 1355222 - When debug logging requested for android mach test commands, enable devicemanager logging; r=jmaher 2017-04-11 09:21:37 -06:00
Geoff Brown df122d5bfa Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or used; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and test harness options like --dm_trans are eliminated.
2017-03-21 12:20:01 -06:00
Eugen Sawin 190e9ca088 Bug 1307886 - [3.2] Extract xz-compressed libs for xpcshell and unit tests. r=glandium 2016-10-28 12:59:23 +02:00
Eugen Sawin 5999591289 Bug 1307886 - [1.2] Remove szip support. r=glandium 2016-10-28 12:59:23 +02:00
Rob Wu 7f9305180e Bug 1295323 - s/CalledProcessError/subprocess.CalledProcessError/ r=dminor
MozReview-Commit-ID: IxtsQCQbAE2

--HG--
extra : rebase_source : ce51dc92b539948b54ac1c9c3e83c4a664917efd
2016-08-01 19:01:12 -07:00
Geoff Brown d447a96b27 Bug 1233311 - Avoid python exception on Android cppunit time-out; r=jmaher 2015-12-18 12:17:07 -07:00
John Dai 6a55b81364 Bug 1201370 - Add emulator parameter to cppunit test. r=ahal
--HG--
extra : transplant_source : m%B9%7E%11BDp%1Ce%EB%84%1D%A2%9E%5D%1E%0B%D7%FB%C7
2015-09-25 11:49:40 +08:00
Geoff Brown ca1aa238ee Bug 1090276 - Support mach cppunittest on Android; r=dminor 2015-09-14 08:40:35 -06:00
Geoff Brown 65a6116f7a Bug 1202102 - Apply szip to libs pushed for Android cppunit and xpcshell tests; r=dminor 2015-09-09 07:12:58 -06:00
Geoff Brown 5cea2df480 Bug 1202101 - In Android cppunit tests, push assets libs; r=dminor 2015-09-09 07:12:57 -06:00
Jonathan Griffin 105e1bf9c3 Bug 1190474 - Allow test-specific timeouts to be specified in cppunittest.ini, r=chmanchester
--HG--
extra : commitid : KHoHs6bXJln
2015-08-12 16:25:56 -07:00
Sebastian Hengst 4bf9aa2b08 Backout bedff4a78d9a (bug 1190474) for B2G ICS Emulator Cpp unittests permafail. r=backout 2015-08-13 09:08:45 +02:00