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

261 Коммитов

Автор SHA1 Сообщение Дата
Bob Clary eddb0836f7 Bug 1516913 - [mozdevice] _get_exitcode should handle the case in where the exitcode marker is not at EOF, r=jmaher. 2018-12-31 10:14:25 -08:00
Geoff Brown 604abb1f8d Bug 1514363 - Do not try to use pidof on android versions before 7.0; r=bc 2018-12-19 14:04:02 -07:00
Geoff Brown e5e351a5a2 Bug 1515189 - Consolidate ADBDevice and ADBAndroid classes; r=bc 2018-12-19 14:04:02 -07:00
Geoff Brown ebdc1440c9 Bug 1512686 - Use pidof to determine android process pid, when available; r=bc 2018-12-12 07:51:24 -07:00
Andrew Halberstadt ce87b08ac4 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:20:16 +00:00
Geoff Brown 048ea9d050 Bug 1509670 - Avoid some android task retries by limiting logcat messages; r=bc 2018-11-27 13:38:03 -07:00
Wes Kocher c45891a714 Bug 1509614 - Downgrade the loglevel for the `get_process_list()` messages in mozbase r=bc
`get_process_list()` makes multiple attempts at setting up adb, but errors setting up the connection get logged with a loglevel of ERROR. This patch makes these messages print with a loglevel of INFO unless this is the final attempt. This will cut down on superfluous error messages appearing in Treeherder's logviewer, while still providing all of the info fennec/tooling developers would need to fix the underlying problem here.

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

--HG--
extra : moz-landing-system : lando
2018-11-24 23:03:49 +00:00
Andreea Pavel e3299fd2db Backed out 5 changesets (bug 1498640, bug 1436037, bug 1497660, bug 1505579) for mass failures on a CLOSED TREE
Backed out changeset 914a7a899dd1 (bug 1436037)
Backed out changeset e072757bf691 (bug 1436037)
Backed out changeset b0805a8cf6eb (bug 1505579)
Backed out changeset aa32ba9e6df3 (bug 1498640)
Backed out changeset ce441b8a784c (bug 1497660)
2018-11-15 07:53:41 +02:00
Andrew Halberstadt b03e2aa337 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

MozReview-Commit-ID: C07FANaYzf7

Depends on D10758

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

--HG--
extra : moz-landing-system : lando
2018-11-15 00:49:45 +00:00
William Lachance e398c2273e Summary: Bug 1506385 - Remove b2g support and unnecessary dependencies from mozdevice r=bc
Differential Revision: https://phabricator.services.mozilla.com/D11564

--HG--
extra : moz-landing-system : lando
2018-11-10 20:17:08 +00:00
Bob Clary 82c93eb971 Bug 1504117 - [mozdevice] Release mozdevice 1.1.6, r=gbrown. 2018-11-02 07:42:53 -07:00
Bob Clary 35a04c73fe Bug 1504154 - [mozdevice] Add ADBAndroid.grant_runtime_permissions() and use when launching applications, r=gbrown. 2018-11-02 07:42:53 -07:00
Bob Clary af6943d3ea Bug 1504117 - [mozdevice] Handle delayed sdcard mount when initializing ADBDevice, r=gbrown. 2018-11-02 07:42:53 -07:00
Bob Clary 1c94872e1f Bug 1502190 - release mozdevice 1.1.5, r=gbrown. 2018-10-26 09:51:37 -07:00
Bob Clary 589663f549 Bug 1502190 - [mozdevice] ADBDevice() should use ls /sdcard to detect ls version, r=jmaher. 2018-10-26 09:51:37 -07:00
Geoff Brown 98f7372cce Bug 1499511 - Add unit test for adb.py _escape_command_line; r=bc 2018-10-17 11:11:52 -06:00
Bob Clary 26b400b059 Bug 1499511 - [mozdevice] Support single-quotes in adb command line, r=gbrown. 2018-10-17 06:53:29 -07:00
Bob Clary 387a996ebf Bug 1499102 - [mozdevice] Allow HOST:PORT as device serial number, bump mozdevice to version 1.1.3, r=gbrown. 2018-10-15 21:03:00 -07:00
Edwin Gao b4f0f75efe Bug 1197370 - Add chown method to adb.py, refactor chmod r=bc
Behavior changes:

- added method for ADBDevice class called chown
- when initializing ADBDevice class, check if recursive flag is supported (similar to chmod -R)

Other changes:
- handling for situation where recursive is desired but -R flag is not supported is in place
- changed behavior above situation to mirror chmod (creation of temporary file based on `self.ls` output, then executing script on device using adb

Unit Tests:
- unit tests to exercise attributes and common paths created. Would need further expansion of tests at some point.
- additional mocking fixtures created.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 16:58:35 +00:00
Edwin Gao 7a26c4e550 Bug 1495596 - change how ADBAndroid checks for presence of 'ls' command r=bc,gbrown
Changes:

- changed the directory checked by the `/system/bin/ls` or `/system/xbin/ls` to be `/system`.
- factor out the directory to a single variable.

Checks:

- mozregression continues to function, checked with emulator
- try runs for all platforms look acceptable

Thoughts:

- error message slightly altered to address comment 10 on bugzilla, however this may not be enough.

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

--HG--
extra : moz-landing-system : lando
2018-10-05 16:00:32 +00:00
Edwin Gao ee7107754b Bug 1190701 - make ADBAndroidMixin.is_app_installed() unambiguous r=bc,gbrown
Behavior changes:
- ADBAndroidMixin.is_app_installed() will now perform a strict check on `app_name` provided. Previously, the behavior was to do a fuzzy match, where as long as the provided `app_name` matched some item on the list it would return True. Now, the exact string as shown when user calls `adb shell > pm list packages` will be required in order to generate a True return value.

Other changes:
- bumped mozdevice version to 1.1.2 reflecting minor behavior change.
- addition of unit tests for ADBAndroidMixin.is_app_installed() method call and surrounding helper methods such as mocked fixtures, manifest changes.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 18:39:38 +00:00
Edwin Gao 2514b44cdb Bug 1488590 - Add tests to mozdevice::adb.py r=ahal
Created tests/ subdirectory under mozdevice.
Added conftest.py and populated with wrappers for the methods under test.
Added test_socket_connections.py with basic tests for new methods and some coverage of legacy/deprecated methods.

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

--HG--
extra : moz-landing-system : lando
2018-09-18 19:35:40 +00:00
egao be45c91042 Bug 1046146 - Change the way that mozdevice checks for the existence of a directory r=gbrown
Refactored the method by which ADBDevice checks for the presence of files or directories.
- created helper method _test_path(), which accepts a path and command line argument to the test command.
- modified existing methods to use the _test_path() method.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 18:33:22 +00:00
egao 1a098a6537 Bug 1484238 - Add an 'adb_reverse' command to mozdevice.ADBAndroid r=gbrown,bc
Differential Revision: https://phabricator.services.mozilla.com/D4775

--HG--
extra : moz-landing-system : lando
2018-09-04 14:15:42 +00:00
Bob Clary c4b7cb740f Bug 1487130 - [mozdevice] Update version to 1.1.0, r=wlach 2018-08-29 10:57:52 -07:00
Bob Clary 7cb17b8a34 Bug 1485855 - [mozdevice] adb.py Do not attempt to chmod external storage as it will not affect permissions and will fail on unrooted devices, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary 6226063bcc Bug 1485854 - [mozdevice] make adb.py _check_adb_root more resilient to differing outputs, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary 4d434dc3ed Bug 1485852 - [mozdevice] rework SELinux support in adb_android.py, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary 2de74229da Bug 1485852 - [mozdevice] adb*.py should use require_root parameter to control root detection, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary cc3c6c78b2 Bug 1485850 - [mozdevice] document adb*.py timeout and verbose parameters in all classes, r=jmaher. 2018-08-27 06:59:21 -07:00
Bob Clary fbae2d44ea Bug 1482884 - During adb push check if remote directory exists before removing basename for adb 1.0.36 and later, r=gbrown. 2018-08-18 10:47:12 -07:00
Bob Clary ac89381d02 Bug 1482874 - Detect anr traces directory, r=gbrown. 2018-08-18 10:47:12 -07:00
Bob Clary 92e11808e8 Bug 1482873 - Do not check for su 0 id if su -c id is supported, r=gbrown.
This works around a hang on Pixel 2 8.1.0/OPM2.171019.029.B1/4720900
rooted via Magisk where su 0 id will hang.
2018-08-18 10:47:11 -07:00
William Lachance d65b9942a2 Bug 1482898 - Support running adb commands in mozdevice as non-root;r=bc 2018-08-13 10:51:12 -04:00
Geoff Brown 897d7e1991 Bug 1470177 - Ensure numeric comparison of timeout in adb.py; r=bc 2018-06-25 10:09:48 -06:00
Geoff Brown 1e82c592a2 Bug 1466657 - Retry Android 'ps' command on unexpected output; r=bc
On the Android x86 emulator, Android 7.0, ps infrequently fails, returning
no output and 0 exit code. Retries are usually effective.
2018-06-18 06:47:30 -06:00
Geoff Brown d4345ee2d8 Bug 1468532 - Disable chatty during Android tests; r=bc 2018-06-18 06:47:29 -06:00
Geoff Brown 708384fcaa Bug 1457662 - [mozdevice] Use separate file object to read shell output for callback; r=bc 2018-04-30 17:58:24 -06:00
Geoff Brown 9110a81757 Bug 1440714 - Bump mozdevice version to 1.0.0; r=bc 2018-04-26 10:43:08 -06:00
Geoff Brown 53fdf724bf Bug 1440714 - Remove DeviceManagerADB and Droid classes from mozdevice; r=bc 2018-04-26 10:43:08 -06:00
Geoff Brown ce07cbb7d8 Bug 1452239 - adb.py - support output callbacks; r=bc
The output callback will be used by geckoview-junit tests, bug 1445716.
2018-04-16 14:05:29 -06:00
Bob Clary fd49545585 Bug 1440714 - make sure to use root=True when determining/creating test_root, r=gbrown 2018-04-10 23:12:29 -07:00
Geoff Brown 3680684f70 Bug 1452694 - Use TestRunnerActivity for geckoview mochitest/reftest; r=bc
This makes the changes necessary to use TestRunnerActivity when geckoview
is installed and requested, but we do not yet attempt to run any such
test tasks in automation.
2018-04-10 13:26:11 -06:00
Geoff Brown e2c5753929 Bug 1440714 - Convert Android cppunit test harness to adb.py; r=bc 2018-03-16 09:37:48 -06:00
Geoff Brown b2a1ec39be Bug 1440714 - Convert rungeckoview to adb.py; r=bc 2018-03-16 09:37:48 -06:00
Geoff Brown b484e85fee Bug 1445940 - fix adb_android.py detection of bool extras in launch_application, r=bc
Originally landed on autophone github in bug 1401617.
2018-03-15 10:57:48 -06:00
Geoff Brown d8fdaf351c Bug 1445940 - adb_android.py - use activity name org.mozilla.gecko.BrowserApp when launching Fennec, r=nalexander
Originally landed on autophone github in bug 1237755.
2018-03-15 10:57:48 -06:00
Geoff Brown 6a32698d7b Bug 1440714 - Add ADBDevice.get_file() to pull and read a remote file; r=bc 2018-03-09 09:27:08 -07:00
Geoff Brown 302c5c717b Bug 1440714 - Add ADBAndroid.get_top_activity() to determine the focused app; r=bc 2018-03-09 09:27:08 -07:00
Geoff Brown 336d7b09b0 Bug 1440714 - Add -r option to ADBAndroid.install_app(); r=bc 2018-03-09 09:27:08 -07:00