diff options
Diffstat (limited to 'qadevOOo/runner/org/openoffice/Runner.java')
-rw-r--r-- | qadevOOo/runner/org/openoffice/Runner.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java index 979fc527f775..63486ca9d3f3 100644 --- a/qadevOOo/runner/org/openoffice/Runner.java +++ b/qadevOOo/runner/org/openoffice/Runner.java @@ -182,8 +182,7 @@ public class Runner } } - public static void main(String[] args) - { + public static boolean run(String... args) { System.out.println("OOoRunner Main() version from 20100125 (yyyymmdd)"); setStartTime(getTime()); @@ -246,12 +245,16 @@ public class Runner if (!worked) { System.out.println("Job " + param.get("TestJob") + " failed"); - System.exit(-1); } else { System.out.println("Job " + param.get("TestJob") + " done"); - System.exit(0); } + return worked; + } + + public static void main(String[] args) + { + System.exit(run(args) ? 0 : -1); } } |