]> git.ipfire.org Git - people/jschlag/nitsi.git/commit
Rework the connection handling of the serial console
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 19 Aug 2018 10:59:48 +0000 (12:59 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 19 Aug 2018 10:59:48 +0000 (12:59 +0200)
commit25572214f9a999a1db15199767ab2c5b8036d252
tree2102df20521b44f6214eb94bef62fca6062ab112
parent5945ce2a76fd758e14cd77a71069875c9ae0dac8
Rework the connection handling of the serial console

We introduce a new way to init a serial console, to connect and disconnect to a serial console.
Therefore we have 3 new functions in the Machine class:
serial_init()
serial_connect()
serial_disconnet()
there are similar functions in the SerialConnection class.

This should make it possible to close a serial connection in a  test and
to reopen this connection later.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/nitsi/machine.py
src/nitsi/serial_connection.py
src/nitsi/test.py