From 9056323165faf1e02c908e990f7a5f70a46f0ec0 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Fri, 14 Feb 2020 19:57:53 +0000 Subject: [PATCH] Check that architecture config doesn't include "all" Add 'all' as an architecture will not give the correct result. To avoid confusion, explicitly check for this and error out if it is added. --- britney2/inputs/suiteloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/britney2/inputs/suiteloader.py b/britney2/inputs/suiteloader.py index 31ebeec..31e6c80 100644 --- a/britney2/inputs/suiteloader.py +++ b/britney2/inputs/suiteloader.py @@ -19,6 +19,8 @@ class SuiteContentLoader(object): def __init__(self, base_config): self._base_config = base_config self._architectures = SuiteContentLoader.config_str_as_list(base_config.architectures) + assert 'all' not in self._architectures, "all not allowed in architectures" + self._nobreakall_arches = SuiteContentLoader.config_str_as_list(base_config.nobreakall_arches, []) self._outofsync_arches = SuiteContentLoader.config_str_as_list(base_config.outofsync_arches, []) self._break_arches = SuiteContentLoader.config_str_as_list(base_config.break_arches, [])