Skip to content

Commit

Permalink
Don't die if releasenotes URL is not available
Browse files Browse the repository at this point in the history
- poo#97316: Sometimes URL for release notes is not yet available
  for SLES. In this case record a soft failure instead of dying.
  • Loading branch information
rakoenig committed Sep 14, 2021
1 parent 3e6fad7 commit 842b0ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/installation/releasenotes_origin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ sub run {
my $src = check_var('SCC_REGISTER', 'installation') ? "RPM" : "URL";
enter_cmd "grep -o \"Got release notes.*\" /var/log/YaST2/y2log";
assert_screen [qw(got-releasenotes-RPM got-releasenotes-URL)];
# poo#97316: It can happen that URL is not yet available for SLES
# so we only record a soft failure here
unless (match_has_tag "got-releasenotes-$src") {
die "Release notes source does NOT match expectaions or not found in YaST logs, expected source: $src";
record_soft_failure("Release notes source does NOT match expectaions or not found in YaST logs, expected source: $src");
}
enter_cmd "exit";
# If we don't have system role screen, release notes origin is verified on partitioning screen
Expand Down

0 comments on commit 842b0ea

Please sign in to comment.