diff --git a/tests/pytests/integration/netapi/test_ssh_client.py b/tests/pytests/integration/netapi/test_ssh_client.py index 2713fa9a87ec..7b32ee83d618 100644 --- a/tests/pytests/integration/netapi/test_ssh_client.py +++ b/tests/pytests/integration/netapi/test_ssh_client.py @@ -211,7 +211,10 @@ def test_shell_inject_ssh_options( } ret = client.run(low) assert path.exists() is False - assert "bad configuration option" in ret["127.0.0.1"] + assert ( + "Bad configuration option" in ret["127.0.0.1"] + or "no argument after keyword" in ret["127.0.0.1"] + ) def test_shell_inject_ssh_port(