mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
test: fix test_bind_ng for alpine
alpine outputs different error message for bind from other distros.
This commit is contained in:
@@ -431,7 +431,8 @@ def test_bind_ng(mscp, src_prefix, dst_prefix):
|
||||
"""Bind to invalid address should fail."""
|
||||
out = run2ng([mscp, "-vvv", "-ddd", "-B", "192.168.10.10",
|
||||
src_prefix + "src", dst_prefix + "dst"])
|
||||
assert "Cannot assign requested address" in out
|
||||
assert ("Cannot assign requested address" in out or
|
||||
"Address not available" in out)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix)
|
||||
|
||||
Reference in New Issue
Block a user