From b9934c98163baa2873bd3a3dee3c57930e197cc7 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 27 Aug 2019 08:36:40 -0700 Subject: [PATCH] Fix prerelease check for Branched update tests Signed-off-by: Adam Williamson --- lib/utils.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index d00adb0e..98be76a9 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -970,15 +970,17 @@ sub check_prerelease { # and this is not changed even with Final, so we cannot test that. # Investigating the history, I noticed that all nightly builds have # that prerelease turned on. And also, it is there on a Beta candidate. - # We can test for that. + # We can test for that. For update tests, if DEVELOPMENT is set the + # prerelease tags should appear, otherwise they should not. my $beta = get_var('ISO'); my $nightly = get_var('BUILD'); my $version = get_var('VERSION'); + my $development = get_var('DEVELOPMENT'); # Let us see if the installed system is one that needs to have the prerelease # note shown, default is NO. my $prerelease = 0; - if ($beta =~ /Beta/ or $version eq "Rawhide") { + if ($beta =~ /Beta/ or $version eq "Rawhide" or $development) { $prerelease = 1; } # If the image is a nightly build or test build, it is not clear whether