Permalink
Browse files

Fixes JENKINS-9462 by adding the '-no-window' flag when listing snaps…

…hots.
  • Loading branch information...
valdisrigdon authored and orrc committed Apr 20, 2011
1 parent ad73f9e commit 04c96707a1b3d064b0239c36f5b1a0a72a24c357
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
@@ -296,7 +296,7 @@ public boolean hasExistingSnapshot(Launcher launcher, AndroidSdk androidSdk)

// List available snapshots for this emulator
ByteArrayOutputStream listOutput = new ByteArrayOutputStream();
String args = String.format("-snapshot-list -avd %s", getAvdName());
String args = String.format("-snapshot-list -no-window -avd %s", getAvdName());
Utils.runAndroidTool(launcher, listOutput, logger, androidSdk, Tool.EMULATOR, args, null);

// Check whether a Jenkins snapshot was listed in the output

0 comments on commit 04c9670

Please sign in to comment.