void () { if (UsefulTestCase.IS_UNDER_TEAMCITY && SETTINGS.isEnvConfiguration()) { Set<String> tags = new HashSet<>(); List<String> roots = getDefaultPythonRoots(); if (roots.size() == 0) { return; // not on env agent } for (String root : roots) { tags.addAll(loadEnvTags(root)); } List<String> missing = new ArrayList<>(); for (String tag : necessaryTags()) { if (!tags.contains(tag)) { missing.add(tag); } } assertEmpty("Agent is missing environments: " + StringUtil.join(missing, ", "), missing); } }