Skip to content

Commit

Permalink
Add check for RC|GMC in release_notes_from_url.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiasyria committed Jan 12, 2024
1 parent 4e6695c commit 62163f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/installation/release_notes_from_url.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ sub run {
enter_cmd "zgrep -oh \"Got release notes.*\" /var/log/YaST2/y2log*";
assert_screen [qw(got-releasenotes-RPM got-releasenotes-URL)];
unless (match_has_tag 'got-releasenotes-URL') {
record_soft_failure('bsc#1190711 - Release notes source does NOT match expectations or not found in YaST logs, expected source: URL');
my $not_RC = script_run('grep -r RC /README.BETA');
my $not_GMC = get_var('BETA');
my $error_msg = 'Release notes source does NOT match expectations or not found in YaST logs, expected source: URL';
if ($not_GMC && $not_RC) {
record_info('bsc#1190711', $error_msg);
}
else {
die $error_msg;
}
}
reset_consoles;
select_console 'installation';
Expand Down

0 comments on commit 62163f4

Please sign in to comment.