From 721af24ca3f2607e7595b7ae8f1fa34f82434696 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Fri, 27 Apr 2018 15:57:46 +0200 Subject: [PATCH] Rename the connection class to serial_connection This reflects our naming scheme better Signed-off-by: Jonatan Schlag --- test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 47c82c4..c13917d 100755 --- a/test.py +++ b/test.py @@ -135,7 +135,7 @@ class machine(): 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 @@ -145,7 +145,7 @@ class machine(): def login(self): try: - 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") @@ -163,7 +163,7 @@ class machine(): self.disk.umount("/") self.disk.close() -class connection(): +class serial_connection(): def __init__(self, device, username=None): self.buffer = b"" self.back_at_prompt_pattern = None -- 2.39.2