Commit Graph

1297 Commits

Author SHA1 Message Date
Pavel Slepushkin
21f7f10fe9 Bug 1471888 - [mozprofile] Add support for Python 3. r=davehunt
Bug 1471888 - [mozprofile] Add support for Python 3.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 18:58:05 +00:00
Cosmin Sabou
80e58fff22 Backed out changeset 30ec08a53991 (bug 1471888) for awsy test failures. CLOSED TREE 2018-09-11 15:12:53 +03:00
Pavel Slepushkin
05853e660a Bug 1471888 - [mozprofile] Add support for Python 3. r=davehunt
Bug 1471888 - [mozprofile] Add support for Python 3.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 11:34:50 +00:00
Xidorn Quan
044a4b8c2c Bug 1489017 - Locate devenv.exe via vswhere on Windows. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5117

--HG--
extra : moz-landing-system : lando
2018-09-07 14:59:55 +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
Bogdan Tara
f302cbb0b3 Merge inbound to mozilla-central. a=merge 2018-09-05 02:24:27 +03: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
ui.manish
a5ea6dfab9 Bug 1435552 Remove NO_EM_RESTART from test harnesses; r=gbrown 2018-08-31 15:33:32 +02:00
Andreas Tolfsen
c67e2dd198 Bug 1488006: mozprofile: derive Default for prefreader::Position. r=jgraham
The user might expect to be able to use Default as the type can be
constructed without arguments.
2018-09-04 14:29:01 +01:00
Andreas Tolfsen
ea994573f0 Bug 1488006: mozprofile: avoid incidental functional call; r=jgraham
There is a functional call after ok_or() which is called and
evaluated before escape_char is converted due to RHS evaluation.
We can avoid this by employing a closure with ok_or_else().
2018-09-04 14:29:01 +01:00
Andreas Tolfsen
5f5116a9ec Bug 1488006: mozprofile: deref token to avoid & prefix; r=jgraham
It is considered more idiomatic to dereference the match expression
than to peek at each variant through a reference.

This silences a clippy lint warning.
2018-09-04 14:29:00 +01:00
Andreas Tolfsen
3a22b09028 Bug 1488006: mozprofile: turn single-character strings into chars; r=jgraham
Where we have single-character strings we can convert them to chars
for efficiency.
2018-09-04 14:28:59 +01:00
Andreas Tolfsen
cc5b563e28 Bug 1488006: mozprofile: avoid identical conversions; r=jgraham
PrefReaderError::new already expects a &str.
2018-09-04 14:28:58 +01:00
Andreas Tolfsen
5c6ca540e3 Bug 1488006: mozprofile: loop over references to container; r=jgraham
It is considered more idiomatic Rust to loop over references to
containers rather than calling the iteration protocol's x.iter()
or x.into_iter() explicitly.
2018-09-04 14:28:58 +01:00
Andreas Tolfsen
129ea5a2a5 Bug 1488006: mozprofile: replace call to io::Write::write() with ::write_all(); r=jgraham
io::Write::write() is not guaranteed to process the entire buffer.
It returns how many bytes were processed, which may be smaller than the
given buffer's length.  mozprofile does not need to deal with partial
writes, so all the calls to ::write() may be replaced with ::write_all().
2018-09-04 14:28:57 +01:00
Andreas Tolfsen
70d1acfb74 Bug 1488006: mozprofile: prefer byte string literals to as_bytes() where possible; r=jgraham
Where string literals contain only ASCII characters, it is considered
better style to define byte strings using b"foo" rather than calling
"foo".as_bytes().
2018-09-04 14:28:56 +01:00
Andreas Tolfsen
da30cf1fa1 Bug 1488006: mozprofile: drop needless lifetimes; r=jgraham
Drops all the unnecessary lifetime definitions in mozprofile.
2018-09-04 14:28:56 +01:00
Andreas Tolfsen
4cf5f38cc9 Bug 1488006: mozprofile: avoid redundant field names in struct init; r=jgraham 2018-09-04 14:28:55 +01:00
Andreas Tolfsen
6064b9610a Bug 1488006: mozprofile: format code; r=jgraham
No functional changes, apart from running all the code through
rustfmt prior to fixing clippy lint warnings.
2018-09-04 14:28:55 +01:00
Andreas Tolfsen
397e3d27d5 Bug 1488007: mozversion: format; r=jgraham
No functional changes, except applying rustfmt.
2018-09-04 13:46:38 +01:00
Andreas Tolfsen
7b7c50ebb6 Bug 1488007: mozversion: lint; r=jgraham
Address clippy lint warnings in mozversion.
2018-09-04 13:46:38 +01:00
Bob Clary
705ee14361 Bug 1487220 - [mozrunner] Add a loop to the raw_input in verify_android_device to check if user actually installed app, r=gbrown. 2018-08-30 19:04:46 -07:00
Preeti Mukherjee
bfa8d74f55 Bug 1471920 - [mozbuild] Use shutil.which in Python 3 instead of vendored third-party package r=davehunt
Use shutil.which in mozbuild for Python 3 instead of vendored third-party package, and enable mozversion tests that are fixed under Python 3 by this change.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 16:39:55 +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
Raphael Pierzina
37d1b753d2 Convert mozhttpd's test suite to pytest (Bug 1479420) r=davehunt
Currently mozhttpd's test suite uses Python's unittest. Several tests don't
shut down started MozHttpd server instances, resulting in blocking test runs.
This patch resolves that problem by using pytest fixtures.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 15:55:18 +00:00
Akshay Chiwhane
5d96779c1c Bug 1465046 - Remove ProcessHandler.waitForFinish(). r=whimboo
--HG--
extra : rebase_source : 9df8444de596c5868efd18c62054f321513b99d6
2018-08-20 21:28:21 +02:00
Bob Clary
b6ff47bfe1 Bug 1482888 - Allow fennec to record audio, r=gbrown. 2018-08-18 10:47:12 -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
fbd6d3dfca Bug 1482878 - Use screencap to capture on physical android device screenshots, 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
Tiberius Oros
fffda63981 Backed out changeset aaabe6d53de2 (bug 1428713) for causing Bug 1483850 a=backout 2018-08-17 00:17:04 +03:00
dvarga
87db76ae1a Merge mozilla-central to mozilla-inbound on a CLOSED TREE
--HG--
extra : rebase_source : c9e6b9edae9ecf064d1318fa15d5d57ea42c102a
2018-08-16 01:22:36 +03:00
Pavel Slepushkin
01b4686deb Bug 1428713 - [mozprocess] Add support for Python 3 r=davehunt
MozReview-Commit-ID: 9wHoIEboA0K

--HG--
extra : rebase_source : f1b1c3a1dcbcd9038adb7a149fc00f7c1849d6e1
2018-08-04 17:32:57 +02:00
Geoff Brown
2b831a4422 Bug 1483563 - Remove 'mach autophone'; r=bc
Autophone has been retired.
2018-08-15 12:54:08 -06:00
Andreas Tolfsen
8f5737840d Bug 1483288 - Provide more number conversions for mozprofile::preferences::PrefValue. r=whimboo
Allow i8, u8, i16, u64, i32, and u32 to be implicitly converted into
PrefValue::Int.  u64 is not supported because it would overflow,
so this still needs to be handled manually.

geckodriver stores the port number as u8 and this will allow it to
implicitly convert it to PrefValue::Int without using the unsafe
"as i64" coercion.
2018-08-15 15:49:09 +01:00
Brindusan Cristian
6a85eae780 Backed out changeset d08617053829 (bug 1428713) for awsy-base failures. CLOSED TREE 2018-08-15 16:46:18 +03:00
Pavel Slepushkin
2022970c76 Bug 1428713 - [mozprocess] Add support for Python 3 r=davehunt
MozReview-Commit-ID: 9wHoIEboA0K

--HG--
extra : rebase_source : ef02475141a1c2d7aa1fb95e2da637b6c033c35f
2018-08-04 17:32:57 +02: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
James Graham
38b6d8b9c7 Bug 1482238 - Bump version of regex in mozversion, r=froydnj
MozReview-Commit-ID: 4VxqemrFWf0

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

--HG--
extra : moz-landing-system : lando
2018-08-10 20:43:53 +00:00
Chris AtLee
182e3f8445 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-08-01 16:00:03 +00:00
Andrew Halberstadt
578b5805ba Bug 1478050 - [moztest] Clean up broken symlinks when setting up test_harness_root r=gbrown
It's unclear how this situation can actually happen, but it has caused a couple of
intermittents.

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

--HG--
extra : moz-landing-system : lando
2018-07-25 19:05:50 +00:00
James Graham
8b666c4875 Bug 1477219 - Update mozlog version number for release, r=ahal
Bump the version number to 3.8, incorporating the LSAN changes. This
minor version bump assumes that mozlog consumers are supposed to
handle unknown actions gracefully (i.e. by ignoring them) and
therefore adding actions doesn't count as a compat-breaking change.

MozReview-Commit-ID: ECsDTuUgkfQ
2018-07-20 13:59:46 +01:00
James Graham
73f2d1ad5b Bug 1354232 - Ensure lsan failures cause treeherder jobs to fail, r=ahal
MozReview-Commit-ID: 56BMxWYWwGr
2018-07-19 16:32:13 +01:00
James Graham
5fd56eafb2 Bug 1354232 - Add support for LSAN to mozlog, r=ahal, mccr8
This adds two new actions to mozlog, one for reporting an LSAN
failure, and one for reporting the summary.

MozReview-Commit-ID: D7ep27SrI1n
2018-07-19 16:32:13 +01:00