1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-08-07 09:25:44 +00:00

RDP client: wait for server before pinging

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>
This commit is contained in:
Adam Williamson 2025-07-17 08:40:09 -07:00
parent 694997be49
commit 7d0e7a590c
4 changed files with 31 additions and 4 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 121,
"ypos": 146,
"width": 239,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_remote_server_running"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -115,10 +115,18 @@ sub run {
if (get_var("KICKSTART") || get_var("RDP_SERVER")) {
# wait for the bootloader *here* - in a test that inherits from
# anacondatest - so that if something goes wrong during install,
# we get anaconda logs. sleep a bit first so we don't get a
# match for the installer bootloader if it hangs around for a
# while after do_bootloader finishes (in PXE case it does)
sleep 60;
# we get anaconda logs.
if (get_var("RDP_SERVER")) {
# wait till the server is running and set a mutex
assert_screen("anaconda_remote_server_running", 180);
mutex_create("remote_server_running");
}
else {
# sleep a bit first so we don't get a
# match for the installer bootloader if it hangs around for a
# while after do_bootloader finishes (in PXE case it does)
sleep 60;
}
assert_screen "bootloader", 1800;
}
else {

View File

@ -1,5 +1,6 @@
use base "installedtest";
use strict;
use lockapi;
use tapnet;
use testapi;
use utils;
@ -9,6 +10,9 @@ sub run {
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