From 5955203dc34db8b900894fa0bd7279692884c862 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Fri, 9 Feb 2024 14:27:53 +0100 Subject: [PATCH] Added missing colon --- eessi/testsuite/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eessi/testsuite/hooks.py b/eessi/testsuite/hooks.py index 88060aab..a16e1679 100644 --- a/eessi/testsuite/hooks.py +++ b/eessi/testsuite/hooks.py @@ -304,7 +304,7 @@ def _set_or_append_valid_systems(test: rfm.RegressionTest, valid_systems: str): # test.valid_systems was set before, so append elif len(test.valid_systems) == 1: test.valid_systems[0] = f'{test.valid_systems[0]} {valid_systems}' - else + else: error_msg=f"test.valid_systems ({test.valid_systems}) is expected to contain one element." error_msg+=f" Instead, it contained {len(test.valid_systems)}." raise ValueError(error_msg)