mirror of
https://github.com/appium/appium.git
synced 2026-02-09 11:18:51 -06:00
Fix issue - failed to pass multi params in avdArgs
when passing multiple params in avdArgs, for instance, --avd-args="-port 5564", transfer the value string into array to avoid failures when spawning a new process
This commit is contained in:
@@ -756,7 +756,8 @@ ADB.prototype.launchAVD = function (avdName, avdArgs, avdLaunchTimeout,
|
||||
if (avdArgs === null) {
|
||||
avdArgs = [avdName];
|
||||
} else if (typeof avdArgs === "string") {
|
||||
avdArgs = [avdName, avdArgs];
|
||||
avdArgs = avdArgs.split(" ");
|
||||
avdArgs.unshift(avdName);
|
||||
}
|
||||
var proc = spawn(emulatorBinaryPath.substr(1, emulatorBinaryPath.length - 2),
|
||||
avdArgs);
|
||||
|
||||
Reference in New Issue
Block a user