mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-08-04 07:55:44 +00:00
This has always incorrectly been a race, it looks like, but for some reason we were winning it before but we're losing it now. The client seems to be pinging while the server's still typing stuff into grub. So let's have the server set a mutex, and the client wait for it. Signed-off-by: Adam Williamson <awilliam@redhat.com>
36 lines
1021 B
Perl
36 lines
1021 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use lockapi;
|
|
use tapnet;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
boot_to_login_screen(timeout => 300);
|
|
$self->root_console(tty => 3);
|
|
setup_tap_static('172.16.2.115', 'rdp002.test.openqa.fedoraproject.org');
|
|
# wait for server to be up
|
|
mutex_lock("remote_server_running");
|
|
mutex_unlock("remote_server_running");
|
|
# test test: check if we can see the server
|
|
assert_script_run "ping -c 2 172.16.2.114";
|
|
# We try to connect through Connections which should
|
|
# be installed by default, however if this is not
|
|
# the case, we do not want the test to fail, so we will
|
|
# install the app and record a soft failure.
|
|
if (script_run("rpm -qa | grep gnome-connections", timeout => 30)) {
|
|
assert_script_run("dnf install -y gnome-connections", timeout => 120);
|
|
record_soft_failure("Gnome Connections are not installed.");
|
|
}
|
|
desktop_vt;
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|