mozdevice test test::device_push fails when run against android emulator
Categories
(Testing :: Mozbase Rust, defect, P3)
Tracking
(Not tracked)
People
(Reporter: beth, Unassigned)
Details
Running the test::device_push test fails when using an Android emulator (specifically, the Visual Studio Emulator for Android -- I could not get HAMX installed on Windows because I have HyperV enabled and in use).
The issue is that in my emulator, running ls -l /data/local/tmp/mozdevice/foo.bar outputs
-rw-rw-rw- root root 0 2021-07-27 19:27 foo.bar
instead of
-rw-rw-rw- root root 0 2021-07-27 19:27 /data/local/tmp/mozdevice/foo.bar
Comment 1•4 years ago
|
||
I've never seen this test failing for me with MacOS and Linux as host. So it might be Windows as host related. Barret could you please tell us which version of the Android emulator you are running?
The affected lines of the mentioned test are here:
https://searchfox.org/mozilla-central/rev/a9db89754fb507254cb8422e5a00af7c10d98264/testing/mozbase/rust/mozdevice/src/test.rs#430-449
Maybe we should simply check if foo.bar and not the full path is part of the output?
| Reporter | ||
Comment 2•4 years ago
|
||
I'm pretty sure its because I'm not using the official emulator based on HAMX but the "Visual Studio Emulator For Android" (installed via the Visual Studio Installer) / Microsoft Emulator Manager 1.1.1207.2. It is apparently from 2016. I am on VS 2017, so its possible it uses a different version of ls on newer versions of the emulator.
This isnt a very big deal because most people can use HAMX (unless they have HyperV enabled for e.g., WSL) or a physical device. It only came up because I am away from my desktop and can't connect a physical device.
Comment 3•4 years ago
|
||
Thanks. Putting the bug on the back burner then.
Description
•