From 44adfe0822e7d44aecc61d8de475177655393daa Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 16 Jun 2015 09:06:16 +0200 Subject: [PATCH] Startup --- plugins/TestingList.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 0b2a49c..3910164 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -68,10 +68,7 @@ public class TestingList extends Panel { //start next test if(iCurrentTestPos>=0 && testingList.isTestRunAllowed()) { - final int position = iCurrentTestPos+1; - SwingUtilities.invokeLater(() -> { - testingList.executeTest(position); - }); + testingList.executeTest(iCurrentTestPos+1); } } else{ // ret empty means that either the test script does not have variable ret, or that the script could not be started at all @@ -85,10 +82,7 @@ public class TestingList extends Panel { //start next test if(iCurrentTestPos>=0 && testingList.isTestRunAllowed()) { - final int position = iCurrentTestPos+1; - SwingUtilities.invokeLater(() -> { - testingList.executeTest(position); - }); + testingList.executeTest(iCurrentTestPos+1); } } } @@ -103,10 +97,7 @@ public class TestingList extends Panel { //start next test if(iCurrentTestPos>=0 && testingList.isTestRunAllowed()) { - final int position = iCurrentTestPos+1; - SwingUtilities.invokeLater(() -> { - testingList.executeTest(position); - }); + testingList.executeTest(iCurrentTestPos+1); } } } @@ -572,7 +563,7 @@ public class TestingList extends Panel { args.put("DEVICE", sDeviceName); args.put("ret", ""); args.put("status", false); - run(sTestName, args); + runAsync(sTestName, args); } catch (Exception ex) { SwingUtils.showMessage(this, "executeTest()", ex.toString()); logger.log(Level.SEVERE, ex.toString());