Skip to content

Commit 3c724c8

Browse files
committed
test: meta: wait Test both NETCONF and RESTCONF, always
Without resetting args.transport the situation may occur when wait running NETCONF and the next test RESTCONF. If this happen, the other test may fail. Without fix: 14:46:28 infamy0:test # ./case/meta/wait.py Waiting for ['dut1', 'dut2', 'dut3', 'dut4'] to come up, timeout: 5.0 min Found fe80::2a0:85ff:fe00:101%d1a on d1a (connected to dut1:e1) fe80::2a0:85ff:fe00:101%d1a answers to TCP connections on port 830 (NETCONF) Found fe80::2a0:85ff:fe00:201%d2a on d2a (connected to dut2:e1) With fix: 14:51:56 infamy0:test # ./case/meta/wait.py Waiting for ['dut1', 'dut2', 'dut3', 'dut4'] to come up, timeout: 5.0 min Found fe80::2a0:85ff:fe00:101%d1a on d1a (connected to dut1:e1) fe80::2a0:85ff:fe00:101%d1a answers to TCP connections on port 830 (NETCONF) fe80::2a0:85ff:fe00:101%d1a answers to TCP connections on port 443 (RESTCONF) Found fe80::2a0:85ff:fe00:201%d2a on d2a (connected to dut2:e1)
1 parent edbc28a commit 3c724c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/case/meta/wait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def is_reachable(node, env):
3030
with test.step("Initialize"):
3131
# The test is designed to be run on a physical topology.
3232
env = infamy.Env(ltop=False)
33-
33+
env.args.transport = None
3434
ctrl = env.ptop.get_ctrl()
3535
infixen = env.ptop.get_infixen()
3636

0 commit comments

Comments
 (0)