Use release number not "rawhide" for Rawhide upgrades (#1531356)

There's a problem with using `--releasever=rawhide` for upgrade
tests ATM - see #1531356 . To avoid this, we'll try using the
real Rawhide release number (which I'm adapting the scheduler
code to discover and pass in as `RAWREL`).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-01-04 18:34:20 -08:00
parent b50c4932db
commit f70416c6a1

View File

@ -6,12 +6,16 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
my $release = lc(get_var("VERSION")); my $release = lc(get_var("VERSION"));
my $relnum = $release;
if ($release eq "rawhide") {
$relnum = get_var("RAWREL", "rawhide");
}
# disable screen blanking (download can take a long time) # disable screen blanking (download can take a long time)
script_run "setterm -blank 0"; script_run "setterm -blank 0";
# use compose repo # use compose repo
repo_setup(); repo_setup();
my $params = "-y --releasever=${release}"; my $params = "-y --releasever=${relnum}";
if ($release eq "rawhide") { if ($release eq "rawhide") {
$params .= " --nogpgcheck"; $params .= " --nogpgcheck";
} }