Skip to content

Commit

Permalink
Ensure that send_key doesn't run on virtio console
Browse files Browse the repository at this point in the history
Call show_tasks_in_blocked_state after selecting
non-virtio console if needed.
  • Loading branch information
asdil12 committed Sep 24, 2018
1 parent b5524b8 commit cb9a0b8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/console_yasttest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ use utils 'show_tasks_in_blocked_state';
sub post_fail_hook {
my $self = shift;

show_tasks_in_blocked_state;
my $defer_blocked_task_info = 0;
if (testapi::is_serial_terminal()) {
$defer_blocked_task_info = 1;
}
else {
show_tasks_in_blocked_state;
}

select_console 'log-console';
save_screenshot;

if ($defer_blocked_task_info) {
show_tasks_in_blocked_state;
}

upload_logs('/var/log/zypper.log');
$self->remount_tmp_if_ro;
$self->save_upload_y2logs;
Expand Down

0 comments on commit cb9a0b8

Please sign in to comment.