From: Donald Sharp Date: Wed, 5 Jan 2022 14:15:26 +0000 (-0500) Subject: tests: Fixup output that was incorrect in nhrp_topo X-Git-Tag: base_8.2~81^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F10290%2Fhead;p=mirror%2Ffrr.git tests: Fixup output that was incorrect in nhrp_topo The nhrp_topo test sets up some infrastructure and was displaying the commands it was outputting incorrectly. Fix this. Signed-off-by: Donald Sharp --- diff --git a/tests/topotests/nhrp_topo/test_nhrp_topo.py b/tests/topotests/nhrp_topo/test_nhrp_topo.py index 313ffd5ce9..e6e551906a 100644 --- a/tests/topotests/nhrp_topo/test_nhrp_topo.py +++ b/tests/topotests/nhrp_topo/test_nhrp_topo.py @@ -87,14 +87,14 @@ def _populate_iface(): for cmd in cmds_tot_hub: input = cmd.format("r2", "2") - logger.info("input: " + cmd) - output = tgen.net["r2"].cmd(cmd.format("r2", "2")) + logger.info("input: " + input) + output = tgen.net["r2"].cmd(input) logger.info("output: " + output) for cmd in cmds_tot: input = cmd.format("r1", "1") - logger.info("input: " + cmd) - output = tgen.net["r1"].cmd(cmd.format("r1", "1")) + logger.info("input: " + input) + output = tgen.net["r1"].cmd(input) logger.info("output: " + output)