From 6b17e1b288918fa61e84f36cede3b53654a04b92 Mon Sep 17 00:00:00 2001 From: Rotem M Date: Thu, 29 Mar 2018 00:22:19 +0300 Subject: [PATCH] Fixes #651: get adb path from ANDROID_HOME when running instrument. --- detox/src/devices/AndroidDriver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detox/src/devices/AndroidDriver.js b/detox/src/devices/AndroidDriver.js index 25cbd9eaff..f4609b8d4a 100644 --- a/detox/src/devices/AndroidDriver.js +++ b/detox/src/devices/AndroidDriver.js @@ -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);