Skip to content

Commit 88af7b1

Browse files
Disable pagination to stop prompt from hanging for long command outputs (#28)
* Fix linting error * Disable pagination to stop prompt from hanging for long command outputs --------- Co-authored-by: alexw-arista <[email protected]>
1 parent 6dfa421 commit 88af7b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pytest_netdut/factories.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ def _ssh(request):
301301
raise exc
302302
if ssh.cli_flavor == "mos":
303303
ssh.sendcmd("enable")
304+
# Disable pagination
305+
ssh.sendcmd("terminal length 0")
304306
yield ssh
305307

306308
return _ssh

0 commit comments

Comments
 (0)