diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/command/RunTests.java')
-rw-r--r-- | plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/command/RunTests.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/command/RunTests.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/command/RunTests.java index 0e81b806451..a2812bbf769 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/command/RunTests.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/command/RunTests.java @@ -104,6 +104,15 @@ public class RunTests implements ITestServerCommand, Serializable { System.clearProperty("ote.pause.on.fail"); } + //Override the command line option only if batch pause has been selected in TestManager + boolean printOnFailMode = global.getBoolean(RunTestsKeys.printFailToConsoleMode.name()); + if(printOnFailMode){ + System.setProperty("ote.print.fail.to.console", "true"); + } + else { + System.clearProperty("ote.print.fail.to.console"); + } + for (IPropertyStore store : scripts) { if (cancelAll) { statusBoard.onTestComplete(store.get(RunTestsKeys.testClass.name()), |