Changeset 18267 in josm for trunk/test/unit


Ignore:
Timestamp:
2021-10-10T15:21:30+02:00 (3 years ago)
Author:
Don-vip
Message:

PluginHandlerTestIT: Skip unofficial plugins in headless mode, too much work for us for little added-value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java

    r17857 r18267  
    195195                if (pi.getRequiredPlugins().contains("javafx")) {
    196196                    System.out.println("Ignoring " + pi.name + " (requiring JavaFX and we're using Java < 11 in headless mode)");
     197                    it.remove();
     198                }
     199            }
     200        }
     201
     202        // Skip unofficial plugins in headless mode, too much work for us for little added-value
     203        if (GraphicsEnvironment.isHeadless()) {
     204            for (Iterator<PluginInformation> it = plugins.iterator(); it.hasNext();) {
     205                PluginInformation pi = it.next();
     206                if (pi.isExternal()) {
     207                    System.out.println("Ignoring " + pi.name + " (unofficial plugin in headless mode)");
    197208                    it.remove();
    198209                }
Note: See TracChangeset for help on using the changeset viewer.