mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
print cli equivalent for commands called via python cli
This commit is contained in:
3
run
3
run
@@ -618,7 +618,8 @@ Run QEMU with VNC instead of the default SDL. Connect to it with:
|
||||
if not self.env['userland']:
|
||||
if os.path.exists(self.env['guest_terminal_file']):
|
||||
with open(self.env['guest_terminal_file'], 'br') as logfile:
|
||||
if logfile.readlines()[-1].rstrip() == self.env['magic_fail_string']:
|
||||
lines = logfile.readlines()
|
||||
if lines and lines[-1].rstrip() == self.env['magic_fail_string']:
|
||||
exit_status = 1
|
||||
if exit_status != 0:
|
||||
self.log_error('simulation error detected by parsing logs')
|
||||
|
||||
Reference in New Issue
Block a user