Closed
Bug 1197370
Opened 9 years ago
Closed 6 years ago
Add chown method to adb.py
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(firefox64 fixed)
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: bc, Assigned: egao)
Details
Attachments
(1 file)
chown has potentially different syntax depending on the version of android. The usage messages for older versions is Usage: chown <USER>[.GROUP] <FILE1> [FILE2] ... while newer versions say Usage: chown <USER>[:GROUP] <FILE1> [FILE2] ...
It does appear that some versions of chown supports the -R recurse flag while others do not. It would be good to implement this as a command in adb.py so that we can hide these implementation differences. Detection in the ADBDevice constructor in a similar fashion to that used for ls might be appropriate.
Assignee | ||
Comment 1•6 years ago
|
||
Try run for builds on all platforms:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=796327815cb6dc8a46606a1a594de612449dc646
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → egao
Assignee | ||
Comment 2•6 years ago
|
||
Try run with tests that invoke mozdevice:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a68d0f78db8f62e03b36af64303a7fae6474ae5c
Assignee | ||
Comment 3•6 years ago
|
||
- added method for ADBDevice class called chown()
- when initializing ADBDevice class, check if recursive flag is supported
- added handling for recursive and non-recursive flags
- added handling for situation where recursive is desired but -R flag is not supported
- added unit tests to exercise each code path, checking if expected values are being returned
Updated•6 years ago
|
Attachment #9015639 -
Attachment description: ./mach lint Bug 1197370 - Add chown method to adb.py r?bc → Bug 1197370 - Add chown method to adb.py r?bc
Updated•6 years ago
|
Attachment #9015639 -
Attachment description: Bug 1197370 - Add chown method to adb.py r?bc → Bug 1197370 - Add chown method to adb.py, refactor chmod r?bc
Assignee | ||
Comment 4•6 years ago
|
||
Additional try run for records:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a00336b210cd866d0aa00d8d134c34ed263ad973
Pushed by gmierz2@outlook.com:
https://hg.mozilla.org/integration/autoland/rev/53dfca556ff1
Add chown method to adb.py, refactor chmod r=bc
Comment 6•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
status-firefox43:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•