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
Conversation
65405e1
to
784b605
Compare
my $file_tar = "/tmp/y2logs_select_patterns.tar.bz2"; | ||
|
||
select_console 'log-console'; | ||
script_run "save_y2logs $file_tar"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should just be
sub post_fail_hook {
my $self = shift;
select_console 'log-console';
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();
}
Or is there some other reason to first tar the logs and immediately extract them again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I missed it in this way of doing. Thanks for suggesting, and I have modified the code.
784b605
to
2b494b4
Compare
This should happen whenever a conflict occurs
2b494b4
to
1224c3a
Compare
sub post_fail_hook { | ||
my $self = shift; | ||
|
||
select_console 'log-console'; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Display the conflict message on the OpenQA web page whenever a conflict occurs during the installation.
https://openqa.suse.de/tests/12855037#step/select_patterns/22
https://openqa.suse.de/tests/12855039#step/select_patterns/1
Latest VRs:
https://openqa.suse.de/tests/12861755
https://openqa.suse.de/tests/12861756