mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 13:11:26 +00:00
Only do the addrepourl check if we're on F28+
inst.addrepo was added in F29. In F28 it should just sorta not do anything at all. It's not worth doing a big workaround to make F28 graphically add the repo in this case; let's just allow F28 to not actually add the repo. It's fine! This is fine. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
d1006a38e5
commit
7aed615a8d
@ -19,7 +19,9 @@ sub run {
|
|||||||
|
|
||||||
# check that the repo was used
|
# check that the repo was used
|
||||||
$self->root_console;
|
$self->root_console;
|
||||||
if ($addrepourl) {
|
# inst.addrepo doesn't actually work in < F29, so don't check it
|
||||||
|
my $version = lc(get_var("VERSION"));
|
||||||
|
if ($addrepourl && ($version eq 'rawhide' || $version > 28)) {
|
||||||
if ($addrepourl =~ m,^nfs://,,) {
|
if ($addrepourl =~ m,^nfs://,,) {
|
||||||
# this line tells us it set up a repo for our URL...
|
# this line tells us it set up a repo for our URL...
|
||||||
assert_script_run 'grep "repo addrepo.*' . ${addrepourl} . '" /tmp/packaging.log';
|
assert_script_run 'grep "repo addrepo.*' . ${addrepourl} . '" /tmp/packaging.log';
|
||||||
|
Loading…
Reference in New Issue
Block a user