Closed Bug 1126035 Opened 10 years ago Closed 10 years ago

Make android emulator command line more configurable

Categories

(Testing :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

We "hard code" much of the command line used to start the emulator for android emulator unit tests: http://hg.mozilla.org/build/mozharness/annotate/fae840c24e70/scripts/android_emulator_unittest.py#l213 Some of those options are not required for Android 4.4. We could make this more flexible using another parameter or two in the mozharness configuration.
This simplifies android_emulator_unittest.py and moves that logic into the configuration files, which will make it easy for me to customize for the Android 4.4 work that I am doing, if necessary. I used https://treeherder.mozilla.org/#/jobs?repo=try&revision=9320daf495d7 to verify that the existing emulator command lines remain the same (except for some harmless argument re-ordering) and tests continue to run. New Android 2.3: 18:36:40 INFO - Trying to start the emulator with this command: emulator -avd test-1 -port 5554 -debug init,console,gles,memcheck,adbserver,adbclient,adb,avd_config,socket -qemu -m 1024 -cpu cortex-a9 New Android x86: 15:48:23 INFO - Trying to start the emulator with this command: emulator -avd test-1 -port 5554 -debug init,console,gles,memcheck,adbserver,adbclient,adb,avd_config,socket -qemu -m 1024 -enable-kvm
Attachment #8555038 - Flags: review?(armenzg)
Comment on attachment 8555038 [details] [diff] [review] move emulator command line info into mozharness configuration Beautiful! You bring joy to my heart! :) This will make it easier in the future if we want to manipulate the values from the tree.
Attachment #8555038 - Flags: review?(armenzg) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: