diff --git a/plugins/TestingList.java b/plugins/TestingList.java index e528455..e7ca916 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -40,7 +40,6 @@ import java.lang.reflect.Method; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; -import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -65,7 +64,7 @@ import javax.swing.table.TableRowSorter; import org.apache.commons.io.FilenameUtils; import org.python.core.PyList; import static org.python.bouncycastle.util.Arrays.append; - +import java.util.Collections; // /** @@ -2378,8 +2377,10 @@ public class TestingList extends Panel { int iCounter = 0; //search devices and their tests //Scan the list of devices + //File[] listOfDevices = TESTS_DEVICES_DEFAULT_DIR.toFile().listFiles(); List listOfDevices = new ArrayList(); Collections.addAll(listOfDevices, TESTS_DEVICES_DEFAULT_DIR.toFile().listFiles()); + for (File deviceInList : listOfDevices) { propDevice.clear(); if (deviceInList.isFile()) { @@ -2416,9 +2417,8 @@ public class TestingList extends Panel { } else { // if nothing found in this directory, see if there is a subdireactory Collections.addAll(listOfDevices, deviceInList.listFiles()); } - } } - } + } //showEnabledTestsOnly(jCheckBoxMenuShowSelectedTests1.getState()); logger.log(Level.INFO, iCounter + " tests loaded."); }