Open Bug 1722633 Opened 4 years ago Updated 4 years ago

mozdevice test test::device_push fails when run against android emulator

Categories

(Testing :: Mozbase Rust, defect, P3)

Default
defect

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

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?

Flags: needinfo?(brennie)

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.

Flags: needinfo?(brennie)

Thanks. Putting the bug on the back burner then.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.