< prev index next >

tools/FxTestRunner/src/client/test/runner/DistributedTestScript.java

Print this page
rev 319 : 8160349: [TEST BUG] Hanged test blocks port and breaks following tests
Summary: Now each test uses random free port and test runner correctly handles interrupts from javatest.

@@ -78,16 +78,16 @@
      * @return
      * @throws IOException
      * @throws Fault
      */
     @Override
-    protected String[] tdCmdArgs(TestDescription td, String resultDir) throws IOException, Fault {

+    protected String[] tdCmdArgs(TestDescription td, String resultDir, int port) throws IOException, Fault {

         String id = env.lookup(BasicFXInterview.TESTSUITE_ID)[0];
         String host = env.lookup(BasicFXInterview.JAVATEST_HOSTNAME)[0];
         String verbose = Boolean.getBoolean("javatest.FXProcessCommand.verbose") ? "-v" : "";
 //        String[] args = super.tdCmdArgs(td, id + File.separator + td.getRootRelativePath());
-        String[] args = super.tdCmdArgs(td, workdirPath + File.separator + td.getParameter("testName"));

+        String[] args = super.tdCmdArgs(td, workdirPath + File.separator + td.getParameter("testName"), port);

         
         String[] ret = {
             "-mapArgs",
             "-c",
             "-classpath",
< prev index next >