diff --git a/src/tests/system/tests/test_sssctl_config_check.py b/src/tests/system/tests/test_sssctl_config_check.py index 202ac3df199..81211534b89 100644 --- a/src/tests/system/tests/test_sssctl_config_check.py +++ b/src/tests/system/tests/test_sssctl_config_check.py @@ -112,6 +112,4 @@ def test_sssctl_config_check__typo_option_value(client: Client): result = client.sssctl.config_check() assert result.rc != 0, "Config-check did not detect misconfigured config" - - pattern = re.compile(r"Attribute 'id_provider' in section 'domain/local' has an invalid value: wrong value*") - assert pattern.search(result.stdout), f"Wrong error message was returned: {result.stdout}" + assert "Attribute 'id_provider' in section 'domain/local' has an invalid value: wrong value" in result.stdout_lines[1]