Commit ad889128 authored by Matous Holinka's avatar Matous Holinka

mh-bird_tables: argument values were modified

parent 698196f5
......@@ -29,10 +29,10 @@ def test_krt_routes_ipv6(exp_devs: str):
@pytest.mark.parametrize("exp_devs", EXPECTED_DEVICES)
def test_bird_routes_ipv4(exp_devs: str):
"""IPv4: get the content of BIRD tables and check it"""
tk.test_bird_routes("bird", exp_devs, "master4")
tk.test_bird_routes("master4", exp_devs, "master4")
@pytest.mark.parametrize("exp_devs", EXPECTED_DEVICES)
def test_bird_routes_ipv6(exp_devs: str):
"""IPv6: get the content of BIRD tables and check it"""
tk.test_bird_routes("bird", exp_devs, "master6")
tk.test_bird_routes("master6", exp_devs, "master6")
......@@ -55,7 +55,7 @@ def save_bird_routes(key: str, dev: str, table: str, loc: str = "temp") -> None:
os.system(
f"""\
./tests/get_stdout_bird '{dev}' \
{table} > {loc}/{table}-{dev}
{table} > {loc}/{key}-{dev}
"""
)
......@@ -73,8 +73,8 @@ def check_bird_routes_timeout(key: str, dev: str, table: str) -> None:
def check_bird_routes(key: str, dev: str, table: str) -> None:
save_bird_routes(key, dev, table)
current_table = read_file(f"temp/{table}-{dev}")
saved_table = read_file(f"{cf.datadir}/{table}-{dev}")
current_table = read_file(f"temp/{key}-{dev}")
saved_table = read_file(f"{cf.datadir}/{key}-{dev}")
for _ in current_table:
return saved_table == current_table
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment