|
@@ -101,14 +101,6 @@ def shutdown_via_ssh(self):
|
|
self.ssh_disconnect_vm()
|
|
self.ssh_disconnect_vm()
|
|
wait_for_console_pattern(self, 'Power down', 'Oops')
|
|
wait_for_console_pattern(self, 'Power down', 'Oops')
|
|
|
|
|
|
- def ssh_command_output_contains(self, cmd, exp):
|
|
|
|
- stdout, _ = self.ssh_command(cmd)
|
|
|
|
- for line in stdout:
|
|
|
|
- if exp in line:
|
|
|
|
- break
|
|
|
|
- else:
|
|
|
|
- self.fail('"%s" output does not contain "%s"' % (cmd, exp))
|
|
|
|
-
|
|
|
|
def run_common_commands(self, wordsize):
|
|
def run_common_commands(self, wordsize):
|
|
self.ssh_command_output_contains(
|
|
self.ssh_command_output_contains(
|
|
'cat /proc/cpuinfo',
|
|
'cat /proc/cpuinfo',
|