This is the mail archive of the mailing list for the Mauve project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix xmlout option


The attached patch fixes the issue in mauve when running the entire test suite with -xmlout fails:

$ java Harness -vm /usr/bin/java -xmlout xmloutputfile
No tests were run. Possible reasons may be listed below.
Did you specify a test that doesn't exist or a folder that contains no tests?

The bug seems to be that mauve ignores the -xmlout option and then treats xmloutputfile as the name of the test to run. The patch adds a case in Harness.setupHarness() so that the argument after -xmlout is skipped (it is later checked in RunnerProcess).

---	2009-02-12 11:30:11.000000000 -0500
+++	2009-02-12 11:34:23.000000000 -0500
@@ -338,6 +338,13 @@
                     "after '-timeout'.  Exit");
             runner_timeout = Long.parseLong(args[i]);
+        else if (args[i].equals("-xmlout"))
+          {
+            // Option handled by RunnerProcess
+            // Next arg is filename; RunnerProcess checks the args
+            // again
+            ++i;
+          }
         else if (args[i].charAt(0) == '-')
             // One of the ignored options (handled by RunnerProcess)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]