Repair undefined box section check

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-05-21 02:38:44 +02:00
parent 345ff9ca7e
commit 4c787b5628
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -59,7 +59,7 @@ def _abort(msg):
def _config():
configmap = {'boxes': {}, 'suites': {}, 'tests': {}}
if not config.options('box'):
if not 'box' in config.sections():
_abort('No "box" section found in the configuration file')
multis = {'boxes': {'prefix': 'box.', 'singular': 'box'}, 'suites': {'prefix': 'suite.', 'singular': 'suite'}, 'tests': {'prefix': 'test.', 'singular': 'test'}}
for multi, multiconf in multis.items():