Verified Commit 75a10b2c authored by Karel Koci's avatar Karel Koci 🤘 Committed by Karel Koci
Browse files

nsfarm/cli: add dedicated method to send ctrl+c character

This is only alias for sending ^C but this way it is way less cryptic in
tests them self.
parent 7dde2147
......@@ -166,6 +166,11 @@ class Shell(Cli):
raise Exception("Command probably won't fit to terminal. Split it or increase number of columns.")
return super().command(cmd)
def ctrl_c(self):
"""Sends ^C character.
def file_read(self, path):
"""Read file trough shell.
......@@ -142,8 +142,7 @@ def fixture_client_board(board, board_serial, board_root_password, lan1_client):
yield nsfarm.cli.Shell(pexp, flush=False) # TODO drop this flush disable when it works
# Kill tail -f on serial console
board_serial.ctrl_c() # Terminate tail -f on serial console
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment