Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the conflict message to display on the openQA page #18167

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/installation/select_patterns.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@ sub run {
$self->accept_changes();
}

sub post_fail_hook {
my $self = shift;

select_console 'log-console';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use serial console here instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Serial terminal isn't available during install. It will be available once installation/reboot done.

my $ret = script_output("grep -E -m 1 \"nothing provides\" /var/log/YaST2/y2log", proceed_on_failure => 1);
record_info("Conflict:", $ret, result => 'fail') if ($ret);
$self->SUPER::post_fail_hook();
}

1;