diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-01-08 17:02:28 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-01-08 17:02:28 +0100 |
commit | 7c771b0d2d01b26a919c629c2cd9af142991ef4a (patch) | |
tree | 27649c5a014f84425120fd8b87acbec20be43917 /tests | |
parent | 040d09bd944b72f5f26510e53443ccd9dd73aaea (diff) | |
download | drminfo-7c771b0d2d01b26a919c629c2cd9af142991ef4a.tar.gz |
add console send
Diffstat (limited to 'tests')
-rw-r--r-- | tests/drminfo/__init__.py | 9 |
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 |