Skip to content

Commit

Permalink
Add function for build publicity check in y2_isntallbase
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiasyria committed Jan 19, 2024
1 parent 24c79ce commit 2103f2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/y2_installbase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,11 @@ sub is_sles_in_gm_phase {
return !get_var('BETA');
}

sub is_sles_in_rc_phase {
my $is_RC = !script_run('grep -r RC /README.BETA');
return $is_RC;
}

sub save_remote_upload_y2logs {
my ($self, %args) = @_;

Expand Down
5 changes: 4 additions & 1 deletion tests/installation/release_notes_from_url.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ use Utils::Backends;
use serial_terminal 'select_serial_terminal';

sub run {
my ($self) = @_;
assert_screen('release-notes-button');
select_console 'install-shell';
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 $error_msg = 'Release notes source does NOT match expectations or not found in YaST logs, expected source: URL';
die $error_msg if ($self->is_sles_in_rc_phase() || $self->is_sles_in_gm_phase());
record_info('bsc#1190711', $error_msg);
}
reset_consoles;
select_console 'installation';
Expand Down

0 comments on commit 2103f2a

Please sign in to comment.