Skip to content

Commit

Permalink
Disable pagination to stop prompt from hanging for long command outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylau-arista committed Feb 7, 2024
1 parent f54876c commit 04e6eaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pytest_netdut/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ def _ssh(request):
raise exc
if ssh.cli_flavor == "mos":
ssh.sendcmd("enable")
# Disable pagination
ssh.sendcmd("terminal length 0")
yield ssh

return _ssh
Expand Down

0 comments on commit 04e6eaf

Please sign in to comment.