Set ANDROID_SDK_ROOT for android box tests
This commit is contained in:
+5
-5
@@ -121,8 +121,11 @@ public class Emulator {
|
|||||||
|
|
||||||
public void startEmulator() {
|
public void startEmulator() {
|
||||||
startServer();
|
startServer();
|
||||||
System.out.println("Starting emulator...");
|
System.out.println("Starting emulator with ANDROID_HOME/ANDROID_SDK_ROOT: " + pathManager.getAndroidSdkRoot());
|
||||||
RunUtils.executeOnSeparateThread(new RunUtils.RunSettings(getStartCommand(), null, false, "START: ", true));
|
GeneralCommandLine startCommand = getStartCommand();
|
||||||
|
startCommand.withEnvironment("ANDROID_SDK_ROOT", pathManager.getAndroidSdkRoot());
|
||||||
|
startCommand.withEnvironment("ANDROID_HOME", pathManager.getAndroidSdkRoot());
|
||||||
|
RunUtils.executeOnSeparateThread(new RunUtils.RunSettings(startCommand, null, false, "START: ", true));
|
||||||
printLog();
|
printLog();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,9 +147,6 @@ public class Emulator {
|
|||||||
bootCheckCommand.addParameter("shell");
|
bootCheckCommand.addParameter("shell");
|
||||||
bootCheckCommand.addParameter("getprop");
|
bootCheckCommand.addParameter("getprop");
|
||||||
bootCheckCommand.addParameter("sys.boot_completed");
|
bootCheckCommand.addParameter("sys.boot_completed");
|
||||||
System.out.println("Setting ANDROID_HOME/ANDROID_SDK_ROOT:" + pathManager.getAndroidSdkRoot());
|
|
||||||
bootCheckCommand.withEnvironment("ANDROID_SDK_ROOT", pathManager.getAndroidSdkRoot());
|
|
||||||
bootCheckCommand.withEnvironment("ANDROID_HOME", pathManager.getAndroidSdkRoot());
|
|
||||||
|
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
RunResult execute = RunUtils.execute(bootCheckCommand);
|
RunResult execute = RunUtils.execute(bootCheckCommand);
|
||||||
|
|||||||
Reference in New Issue
Block a user