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

191 Коммитов

Автор SHA1 Сообщение Дата
William Lachance dfdc5f2814 Bug 1353527 - Tag mozdevice 0.50 r=bc
MozReview-Commit-ID: 8MMuTDX7uBH

--HG--
extra : rebase_source : 6c632ad1cca513796b80d98050994ebb6d5cce6b
2017-04-04 16:44:07 -04:00
Geoff Brown 7d75784cbc Bug 1353537 - Update adb.py push() to always copy directories when pushing a directory; r=bc 2017-04-04 18:48:12 -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
Geoff Brown c8b0aec1da Bug 1346083 - Fix devicemanagerADB's pushDir() for adb >= 1.0.36 with links in directory; r=bc
To allow for pushing directories containing symbolic links, pushDir
now always copies the source directory to a temporary local copy
before pushing.

In addition, I have added error checking, so that pushDir will now fail
if its adb command fails and returns a non-0 status from _checkCmd.
2017-03-14 08:08:42 -06:00
Andrew Halberstadt 8415b25e37 Bug 1003417 - Add a 'mozbase' subsuite to python unittests on linux, r=ted
The subsuite is added conditionally because we only have the capability of
running source-check tasks on linux at the moment. Once taskcluster support
for windows and mac has matured a bit and the taskcluster configs support
source-check there, we should apply the subuite unconditionally.

MozReview-Commit-ID: Kk9Irz3fn14

--HG--
extra : rebase_source : b9266a06583083c36477d4e93f5462ee614cdb71
2016-11-16 16:43:42 -05:00
Geoff Brown eba0707fb7 Bug 1335944 - Delay devicemanagerADB sdk check until connect() time; r=bc 2017-02-02 09:29:08 -07:00
Bob Clary afd633fd4a Bug 1334613 - [mozdevice] - use root to kill processes on Android 7+, r=gbrown. 2017-01-30 16:09:14 -08:00
Bob Clary 2d71f27173 Bug 1328301 - handle push/pull directory semantics changes in adb 1.0.36 for devicemanagerADB, r=gbrown 2017-01-21 09:49:56 -08:00
Bob Clary 88345f4996 Bug 1328301 - handle push/pull directory semantics changes in adb 1.0.36 for adb.py, r=gbrown. 2017-01-21 09:49:56 -08:00
Geoff Brown 1e2847e98f Bug 1319196 - Increase timeout for 'adb shell dumpsys'; r=jmaher 2016-12-13 11:28:04 -07:00
Andrew Halberstadt 2d76b4f70d Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester
The mozbase unittests don't use mozunit, so their output is confusing in the log.
This makes mozbase output consistent with the rest of the python unittests.

MozReview-Commit-ID: AIs5mza8Rn6

--HG--
extra : rebase_source : 10f65e612f5b3cebb921c47699f5a8be7cd2ba5a
2016-11-17 16:36:18 -05:00
Bob Clary b43b4345da Bug 1318001 - Autophone - mozdevice - adb*.py - properly split lines from shell output, r=gbrown. 2016-11-17 09:21:06 -08:00
Bob Clary 2c776a4858 Bug 1245347 - [Autophone|mozdevice] - increase mozdevice version to 0.49, r=wlach. 2016-11-17 09:21:06 -08:00
Bob Clary 18f2b61b73 Bug 1245347 - [Autophone|mozdevice] - is_device_ready should not require root to check the ready_path, r=wlach. 2016-11-17 09:21:06 -08:00
Bob Clary 87156f5bf5 Bug 1245347 - [Autophone|mozdevice] - catch initial ADBRootError during initialization if root is not supported, r=wlach. 2016-11-17 09:21:06 -08:00
Bob Clary 7d8ea8a26f Bug 1306703 - Autophone - mozdevice - combine stdout, stderr, r=droeh,gbrown 2016-10-24 11:09:57 -07:00
Bob Clary 6c9a138775 Bug 1306703 - Autophone - mozdevice - minimal Android 7 support in adb*.py, r=droeh 2016-10-24 11:09:57 -07:00
Bob Clary 05fec78423 Bug 1310937 - Autophone - mozdevice - sync Bug 1300890 - Autophone - pylint fixes and logging clean up, r=jmaher. 2016-10-19 06:06:55 -07:00
Bob Clary b585826937 Bug 1310937 - Autophone - mozdevice - sync Bug 1249120 - Autophone - use unrolled recursive chmod when -R not supported, r=gbrown. 2016-10-19 06:06:55 -07:00
Bob Clary e42a131006 Bug 1310937 - Autophone - mozdevice - sync Bug 1249120 - Autophone - adb.py - add ADBDevice.ls, r=gbrown. 2016-10-19 06:06:55 -07:00
Bob Clary f1e8ddaf2b Bug 1310937 - Autophone - mozdevice - sync Bug 1242070 - Autophone - adb.py - use native recursion with chmod when supported by the device, r=gbrown. 2016-10-19 06:06:54 -07:00
Bob Clary e03d68e716 Bug 1310937 - Autophone - mozdevice - sync Bug 1241267 - Autophone - adb_android.py - use install -g on Marshmallow to grant permissions at install time, r=gbrown. 2016-10-19 06:06:54 -07:00
Bob Clary cf3db8494d Bug 1310937 - Autophone - mozdevice - sync Bug 1238450 - Autophone - adb.py - use ifconfig interface or netcfg to obtain ip address, r=gbrown 2016-10-19 06:06:54 -07:00
Francesco Pischedda f45ed99748 Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal
added testing/mozbase to tools/lint/flake8.lint
fixed a first batch of PEP8 errors/warnings

at first the commad autopep8 -i --max-line-length 99 -r -j 8 .
has been used to fix simpler problems, run from testing/mozbase

some of the issues can not easily fixed :
- undefined 'names' in code for example isLinux - isLinux and isBsd "fixed" with # noqa
- undefined 'message' resolved with return fmt.format(...
- undefined 'structured' resolved replacing those with mozlog
- long comments - some remaining - addressed with # noqa
- package level import everything - addressed with # flake8: noqa

restored testing/mozbase/mozdevice/mozdevice/Zeroconf.py
fixed issues reported on mozreview
fixed ')' in testing/mozbase/mozprocess/mozprocess/qijo.py imports
finally fixed multiline string at testing/mozbase/manifestparser/tests/test_manifestparser.py:114
^^^ and again, but now with ./mach python-test --path-only testing/mozbase/manifestparser/tests/test_manifestparser.py passing
fixed testing/mozbase/manifestparser/tests/test_convert_directory.py assert

fixed this error:
10:15:21     INFO -      return lambda line: stack_fixer_module.fixSymbols(line)
10:15:21     INFO -  TypeError: fixSymbols() takes exactly 2 arguments (1 given)

fixed two spaces lint error even of #  noqa comments
restored assignement to lambda with #  noqa to silence the lint error
global noqa for testing/mozbase/manifestparser/tests/test_filters.py
stupid is/is not error...

MozReview-Commit-ID: 1FpJF54GqIi

--HG--
extra : rebase_source : 3cf0277fb36a296e3506aeacc2ff05e1b03f9eac
2016-09-30 16:08:37 +02:00
Andrew Halberstadt 0d41359cf5 Bug 1300163 - Add a --adbpath argument to mochitest Android to allow explicitly setting the adb binary, r=gbrown
In mozdevice, it's possible to pass in the path to the adb binary (rather than requiring it to be on the path). The
mochitest android options don't provide any means to set this however (even though the b2g options do). This patch
adds that option in.

This will be used by the mach environment on interactive loaners.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : 07ad43c8fff3eb83a1eaab9ad0532cd85c4532c7
2016-09-02 14:26:16 -04:00
Geoff Brown 058d5be563 Bug 1285663 - Optimize profile pushes and do not chmod files on /sdcard; r=bc 2016-07-14 10:36:31 -06:00
Geoff Brown 94e2b5ece5 Bug 1285040 - Adapt device manager pushDir to latest adb; r=bc 2016-07-08 09:20:03 -06:00
Maja Frydrychowicz bc77cad106 Bug 787203 - [mozdevice] Add remove_forward method to DeviceManagerADB; r=ahal
For adb forward --remove|remove-all

MozReview-Commit-ID: FrfFOCSQl6q

--HG--
extra : rebase_source : c3a9bd1224b5defa2bd50404a2e7eecf78997873
2016-06-28 23:41:30 -04:00
Ms2ger 4d796781c7 Bug 1257510 - Use modern exception syntax in mozbase; r=ahal
The comma form is long-deprecated.
2016-03-18 09:03:25 +01:00
Nick Alexander e9505d1f75 Bug 1242213 - Part 0: Use org.mozilla.gecko.BrowserApp instead of .App. r=me,gbrown,bc
This approach lets us get rid of the .App <activity-alias> definitions, at
least.

In Bug 1237755, I tried pretty hard to use real intent filters, rather
than a different hard-code path name, but ran into significant issues,
and finally into the hard reality that Android 2.3 doesn't support
bare package names.  (It only supports package/class component names.)
Android 2.3 can't die fast enough.

Sadly, this approach doesn't address the issues I see loading URLs
that prompted Bug 1237755.

This is the path of least resistance.  Onwards!

Tested via:

nalexander@chocho ~/M/gecko> ./mach run
Starting: Intent { act=android.activity.MAIN cmp=org.mozilla.fennec_nalexander/org.mozilla.gecko.BrowserApp }
Warning: Activity not started, its current task has been brought to the front
nalexander@chocho ~/M/gecko> ./mach run https://mozilla.org
Starting: Intent { act=android.activity.MAIN dat=https://mozilla.org cmp=org.mozilla.fennec_nalexander/org.mozilla.gecko.BrowserApp }
nalexander@chocho ~/M/gecko> ./mach run file:///mnt/sdcard/test.html
Starting: Intent { act=android.activity.MAIN dat=file:///mnt/sdcard/test.html cmp=org.mozilla.fennec_nalexander/org.mozilla.gecko.BrowserApp }

--HG--
extra : commitid : JUIJj13Q0Py
extra : rebase_source : a62d8a74ca2772fd3933597589e386cf56caa396
extra : amend_source : 234f3b6b8ef6c6f2cce991375f5c28fe1cb32cad
extra : histedit_source : 5476222279f6be0927879a1136def94673885071%2Cca4aad42479731c97586003ee8bcdfe22a147776
2016-01-27 12:15:19 -08:00
Julien Pagès c6fd260e95 Bug 1236467 - [mozdevice] raise exception when missing devices access permissions. r=ahal
Also bump the version to 0.48.

--HG--
extra : rebase_source : a79be8684a51a529a6b163c9bac378a199ab6961
2016-01-04 16:29:36 +01:00
Geoff Brown c0573a940f Bug 1144393 - Use /storage/sdcard in preference to /sdcard for adb device root and enable test_file_equality.js; r=jmaher 2015-12-21 14:24:08 -07:00
Geoff Brown 9d3f18e1e3 Bug 1233454 - Guard against ps timeout in devicemanagerADB.getProcessList; r=jmaher 2015-12-18 12:17:06 -07:00
Bob Clary 98b2574861 Bug 1214812 - [mozdevice] - adb_android.py - fix missing test_root argument to ADBAndroid, r=gbrown. 2015-12-02 08:34:20 -08:00
Bob Clary 9115f85f5d Bug 1214812 - [mozdevice] - adb.py, adb_android.py - if possible always run adbd as root, set SELinux to Permissive, r=gbrown. 2015-12-02 08:34:20 -08:00
Bob Clary f2a34ba40e Bug 1214812 - [mozdevice] - adb.py - do not prepend LD_LIBRARY_PATH to su commands, r=gbrown. 2015-12-02 08:34:20 -08:00
Bob Clary 98a7468d9e Bug 1214812 - [mozdevice] - devicemanagerADB.py - listFiles - check for device or resource busy failure message, r=gbrown. 2015-12-02 08:34:20 -08:00
Bob Clary 6980875837 Bug 1214812 - [mozdevice] - devicemanagerADB.py - check if busybox's ls -1A is used, r=gbrown. 2015-12-02 08:34:19 -08:00
Bob Clary 7851921283 Bug 1214812 - [mozdevice] - devicemanagerADB.py - use su 0 if it is available; check for root updates, r=gbrown. 2015-12-02 08:34:19 -08:00
Wes Kocher f619310a07 Backed out 6 changesets (bug 1214812) for kk emulator test bustage
Backed out changeset b36710809f0c (bug 1214812)
Backed out changeset a3b5c66f34e4 (bug 1214812)
Backed out changeset df6d3dc3fca9 (bug 1214812)
Backed out changeset 9f94be2a3c1d (bug 1214812)
Backed out changeset 1eaf9f30b00d (bug 1214812)
Backed out changeset 902b985b3273 (bug 1214812)

--HG--
extra : commitid : LNisZGOtv0q
2015-12-01 15:33:07 -08:00
Bob Clary 28f6dda48d Bug 1214812 - [mozdevice] - adb_android.py - fix missing test_root argument to ADBAndroid, r=gbrown. 2015-12-01 14:25:13 -08:00
Bob Clary f0fb183222 Bug 1214812 - [mozdevice] - adb.py, adb_android.py - if possible always run adbd as root, set SELinux to Permissive, r=gbrown. 2015-12-01 14:25:12 -08:00
Bob Clary d29912ed0e Bug 1214812 - [mozdevice] - adb.py - do not prepend LD_LIBRARY_PATH to su commands, r=gbrown. 2015-12-01 14:25:12 -08:00
Bob Clary 51794b5162 Bug 1214812 - [mozdevice] - devicemanagerADB.py - listFiles - check for device or resource busy failure message, r=gbrown. 2015-12-01 14:25:12 -08:00
Bob Clary da4e38e6e7 Bug 1214812 - [mozdevice] - devicemanagerADB.py - check if busybox's ls -1A is used, r=gbrown. 2015-12-01 14:25:12 -08:00
Bob Clary d292922eee Bug 1214812 - [mozdevice] - devicemanagerADB.py - use su 0 if it is available; check for root updates, r=gbrown. 2015-12-01 14:25:12 -08:00
Julien Pagès 2725fa621d Bug 1185969 - bump mozdevice version to 0.47. r=bc
--HG--
extra : commitid : JNw6jt9Or4C
extra : rebase_source : 1a70a3288c69c4fe1e1450aca076903df3b0828b
2015-10-29 20:37:44 +01:00
Julien Pagès 5fe647171b Bug 1185969 - [mozdevice] Allow to use android preview releases. r=bc
--HG--
extra : commitid : Ea3gZOnjoy6
extra : rebase_source : 822864eb9507c5650bc9ef29d308ffff63c44b25
2015-10-28 17:22:16 +01:00
Bob Clary 4e47253aa0 Bug 1218997 - [mozdevice] adb_android.py ADBDevice.power_on() requires root, r=gbrown. 2015-10-28 23:21:47 -07:00
Bob Clary 66e5eee002 Bug 1218993 - [mozdevice] do not repeat wait-for-device in adb commands, r=gbrown. 2015-10-28 23:21:47 -07:00