aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-01-08 17:02:28 +0100
committerGerd Hoffmann <kraxel@redhat.com>2021-01-08 17:02:28 +0100
commit7c771b0d2d01b26a919c629c2cd9af142991ef4a (patch)
tree27649c5a014f84425120fd8b87acbec20be43917 /tests
parent040d09bd944b72f5f26510e53443ccd9dd73aaea (diff)
downloaddrminfo-7c771b0d2d01b26a919c629c2cd9af142991ef4a.tar.gz
add console send
Diffstat (limited to 'tests')
-rw-r--r--tests/drminfo/__init__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/drminfo/__init__.py b/tests/drminfo/__init__.py
index 429ac41..492d751 100644
--- a/tests/drminfo/__init__.py
+++ b/tests/drminfo/__init__.py
@@ -177,11 +177,14 @@ class TestDRM(avocado.Test):
self.console_run('PS1=---\\\\u---\\\\n')
self.console_wait('---root---')
- def console_run(self, command):
- self.lcommand.debug(command)
- self.wconsole.write(command)
+ def console_send(self, line = ""):
+ self.wconsole.write(line)
self.wconsole.write('\n')
self.wconsole.flush()
+
+ def console_run(self, command):
+ self.lcommand.debug(command)
+ self.console_send(command)
self.rconsole.readline() # newline
self.rconsole.readline() # command line echo