Closed Bug 1141573 Opened 11 years ago Closed 10 years ago

[MozDevice] Accept variables from the environment to set adb host and port in commands

Categories

(Firefox OS Graveyard :: Gaia::PerformanceTest, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Eli, Assigned: Eli)

Details

(Keywords: perf)

Attachments

(3 files)

For automation there is going to be a new remote device lab in which commands are not sent to a direct device connection but rather are done via host and port connection. Raptor needs to accept environment variables for these arguments.
Summary: [Raptor] Accept variables from the environment to set adb host and port in commands → [MozDevice] Accept variables from the environment to set adb host and port in commands
This patch allows Raptor to run commands against a remote device by specifying the environment variables ADB_HOST and ADB_PORT to the test in Gaia, e.g.: ADB_HOST=192.168.1.10 ADB_PORT=5037 DEBUG=* RUNS=1 APP=clock node tests/raptor/launch_test After getting a remote device working and specifying -H and -P on each command, I was surprised by how seamlessly this operated; it really felt like the device was still on my local machine. :D
Attachment #8577283 - Flags: review?(rwood)
Attachment #8577283 - Flags: feedback?(dave.hunt)
You can save from having to put ADB_HOST and ADB_PORT in the command line constantly by placing them with .env file variables that the other Raptor env variables use.
Comment on attachment 8577283 [details] [review] Link to Github pull-request: https://github.com/eliperelman/node-mozdevice/pull/11 Looks great, thanks Eli!
Attachment #8577283 - Flags: feedback?(dave.hunt) → feedback+
Comment on attachment 8577283 [details] [review] Link to Github pull-request: https://github.com/eliperelman/node-mozdevice/pull/11 LGTM and R+ based on that you tested it out with your own remote device setup.
Attachment #8577283 - Flags: review?(rwood) → review+
Comment on attachment 8580711 [details] [review] [gaia-node-modules] eliperelman:bug-1141573 > mozilla-b2g:master Carrying over r+ for package bump.
Attachment #8580711 - Flags: review+
Comment on attachment 8580713 [details] [review] [gaia] eliperelman:bug-1141573 > mozilla-b2g:master Carrying over r+ for package bump.
Attachment #8580713 - Flags: review+
Status: ASSIGNED → 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

Creator:
Created:
Updated:
Size: