mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-09-22 06:08:49 +00:00
In IoT F43 and F44 at present, greenboot is failing if networking is not immediately available on boot. Well, on our tests that use static networking, it isn't. So that's a problem. Let's have the static networking setup test stop greenboot if it's running on IoT, that should get around this. Signed-off-by: Adam Williamson <awilliam@redhat.com>
27 lines
588 B
Perl
27 lines
588 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use tapnet;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# stop greenboot to avoid
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2396605
|
|
if (get_var("SUBVARIANT") eq "IoT") {
|
|
script_run "systemctl stop greenboot-set-rollback-trigger.service greenboot-healthcheck.service";
|
|
}
|
|
my ($ip, $hostname) = split(/ /, get_var("POST_STATIC"));
|
|
$hostname //= 'localhost.localdomain';
|
|
# set up networking
|
|
setup_tap_static($ip, $hostname);
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|