This reflects our naming scheme better
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
return elem.get("path")
def check_is_booted_up(self):
return elem.get("path")
def check_is_booted_up(self):
- serial_con = connection(self.get_serial_device())
+ serial_con = serial_connection(self.get_serial_device())
serial_con.write("\n")
# This will block till the domain is booted up
serial_con.write("\n")
# This will block till the domain is booted up
- self.serial_con = connection(self.get_serial_device(), username=self.username)
+ self.serial_con = serial_connection(self.get_serial_device(), username=self.username)
self.serial_con.login(self.password)
except BaseException as e:
self.log.error("Could not connect to the domain via serial console")
self.serial_con.login(self.password)
except BaseException as e:
self.log.error("Could not connect to the domain via serial console")
self.disk.umount("/")
self.disk.close()
self.disk.umount("/")
self.disk.close()
+class serial_connection():
def __init__(self, device, username=None):
self.buffer = b""
self.back_at_prompt_pattern = None
def __init__(self, device, username=None):
self.buffer = b""
self.back_at_prompt_pattern = None