diff options
author | John Arthorne | 2009-10-06 18:59:40 +0000 |
---|---|---|
committer | John Arthorne | 2009-10-06 18:59:40 +0000 |
commit | 84410042ca84d1d65a955ce0996aa5a3e0cebf35 (patch) | |
tree | d0bf2305c951c127f09f25eeb51b41711463d900 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler | |
parent | 002a81d4ede736ea0a521297a213aba7cb073148 (diff) | |
download | rt.equinox.p2-84410042ca84d1d65a955ce0996aa5a3e0cebf35.tar.gz rt.equinox.p2-84410042ca84d1d65a955ce0996aa5a3e0cebf35.tar.xz rt.equinox.p2-84410042ca84d1d65a955ce0996aa5a3e0cebf35.zip |
Propagate stderr from verification process
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java index f20f56ebd..1273a1c01 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java @@ -87,17 +87,14 @@ public class AbstractReconcilerTest extends AbstractProvisioningTest { * Run the given command. */ protected static int run(String message, String[] commandArray) { - // System.out.print("Executing "); - // for (int i = 0; i < commandArray.length; i++) { - // System.out.print(" " + commandArray[i]); - // } BufferedReader reader = null; try { Process process = Runtime.getRuntime().exec(commandArray, null, output); reader = new BufferedReader(new InputStreamReader(process.getErrorStream())); try { - while (reader.readLine() != null) { - // do nothing + String line; + while ((line = reader.readLine()) != null) { + System.err.println(line); } } finally { reader.close(); @@ -582,13 +579,13 @@ public class AbstractReconcilerTest extends AbstractProvisioningTest { public int runVerifierBundle(File destination) { if (destination == null) destination = output; - String message = "Running the verifier bundle"; + String message = "Running the verifier bundle at: " + destination; File root = new File(Activator.getBundleContext().getProperty("java.home")); root = new File(root, "bin"); File exe = new File(root, "javaw.exe"); if (!exe.exists()) exe = new File(root, "java"); - String[] command = new String[] {(new File(destination, "eclipse/eclipse")).getAbsolutePath(), "--launcher.suppressErrors", "-nosplash", "-application", "org.eclipse.equinox.p2.tests.verifier.application", "-vm", exe.getAbsolutePath(), "-vmArgs", "-Dosgi.checkConfiguration=true"}; + String[] command = new String[] {(new File(destination, "eclipse/eclipse")).getAbsolutePath(), "--launcher.suppressErrors", "-dev", "bin", "-nosplash", "-application", "org.eclipse.equinox.p2.tests.verifier.application", "-vm", exe.getAbsolutePath(), "-vmArgs", "-Dosgi.checkConfiguration=true"}; // command-line if you want to run and allow a remote debugger to connect //String[] command = new String[] {(new File(destination, "eclipse/eclipse")).getAbsolutePath(), "--launcher.suppressErrors", "-nosplash", "-application", "org.eclipse.equinox.p2.tests.verifier.application", "-vm", exe.getAbsolutePath(), "-vmArgs", "-Dosgi.checkConfiguration=true", "-Xdebug", "-Xnoagent", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8787"}; return run(message, command); |