Skip to content

Commit

Permalink
Fixes #651: get adb path from ANDROID_HOME when running instrument.
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemmiz authored and yershalom committed Apr 4, 2018
1 parent 7937fe3 commit 6b17e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detox/src/devices/AndroidDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class AndroidDriver extends DeviceDriverBase {
return this.instrumentationProcess.pid;
}

this.instrumentationProcess = spawn(`adb`, [`-s`, `${deviceId}`, `shell`, `am`, `instrument`, `-w`, `-r`, `${args.join(' ')}`, `-e`, `debug`,
this.instrumentationProcess = spawn(this.adb.adbBin, [`-s`, `${deviceId}`, `shell`, `am`, `instrument`, `-w`, `-r`, `${args.join(' ')}`, `-e`, `debug`,
`false`, `${bundleId}.test/android.support.test.runner.AndroidJUnitRunner`]);
log.verbose(this.instrumentationProcess.spawnargs.join(" "));
log.verbose('Instrumentation spawned, childProcess.pid: ', this.instrumentationProcess.pid);
Expand Down

0 comments on commit 6b17e1b

Please sign in to comment.