mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-12 01:44:21 +00:00
Fix prerelease check for Branched update tests
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
4bb89046d3
commit
b9934c9816
@ -970,15 +970,17 @@ sub check_prerelease {
|
|||||||
# and this is not changed even with Final, so we cannot test that.
|
# and this is not changed even with Final, so we cannot test that.
|
||||||
# Investigating the history, I noticed that all nightly builds have
|
# Investigating the history, I noticed that all nightly builds have
|
||||||
# that prerelease turned on. And also, it is there on a Beta candidate.
|
# 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 $beta = get_var('ISO');
|
||||||
my $nightly = get_var('BUILD');
|
my $nightly = get_var('BUILD');
|
||||||
my $version = get_var('VERSION');
|
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
|
# Let us see if the installed system is one that needs to have the prerelease
|
||||||
# note shown, default is NO.
|
# note shown, default is NO.
|
||||||
my $prerelease = 0;
|
my $prerelease = 0;
|
||||||
if ($beta =~ /Beta/ or $version eq "Rawhide") {
|
if ($beta =~ /Beta/ or $version eq "Rawhide" or $development) {
|
||||||
$prerelease = 1;
|
$prerelease = 1;
|
||||||
}
|
}
|
||||||
# If the image is a nightly build or test build, it is not clear whether
|
# If the image is a nightly build or test build, it is not clear whether
|
||||||
|
Loading…
Reference in New Issue
Block a user