Merge remote-tracking branch 'upstream/release_19.05' into dev

This commit is contained in:
John Chilton
2019-05-02 14:19:49 -04:00
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ class ConfiguresHandlers(object):
log.error("Handler '%s' overlaps handler with the same name, ignoring", handler_id)
else:
log.debug("Read definition for handler '%s'", handler_id)
self._parse_handler(handler_id, handler)
self.add_handler(
handler_id,
[x.strip() for x in handler.get('tags', self.DEFAULT_HANDLER_TAG).split(',')]
+10
View File
@@ -230,6 +230,16 @@ class JobConfXmlParserTestCase(unittest.TestCase):
assert env_dest.env[3]["execute"] == "module load javastuff/2.10"
def test_handler_runner_plugins(self):
self.__with_advanced_config()
assert self.job_config.handler_runner_plugins["sge_handler"] == ["sge"]
assert "special_handler1" not in self.job_config.handler_runner_plugins
def test_resource_groups(self):
self.__with_advanced_config()
assert self.job_config.default_resource_group == "default"
assert self.job_config.resource_groups["memoryonly"] == ["memory"]
def test_macro_expansion(self):
self.__with_advanced_config()
for name in ["foo_small", "foo_medium", "foo_large", "foo_longrunning"]: