Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/console/test_console_reversessh.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def test_console_reversessh_force_interrupt(duthost, creds, conn_graph_facts, co
"Target line {} is busy before reverse SSH session start".format(target_line))

ressh_user = "{}:{}".format(dutuser, target_line)
client = None
try:
client = console_session(duthost, dutip, ressh_user, dutpass, target_line)
pytest_assert(
Expand All @@ -150,7 +151,7 @@ def test_console_reversessh_force_interrupt(duthost, creds, conn_graph_facts, co
error_msg="Target line {} not toggle to IDLE state after force clear command sent".format(target_line))

try:
client.expect("Picocom was killed")
client.expect_exact(["Picocom was killed", "Thanks for using picocom"])
except Exception as e:
pytest.fail("Console session not exit correctly: {}".format(e))

Expand Down