mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 13:33:08 +00:00
Use mutex to synchronize servers.
This commit is contained in:
parent
c506cfb7c0
commit
66b745c840
@ -20,6 +20,9 @@ sub run {
|
||||
# Return to the desktop
|
||||
desktop_vt();
|
||||
|
||||
# Wait until the RDP server is ready
|
||||
mutex_lock("kaermorhen_opened");
|
||||
|
||||
# Open terminal and make a connection to the remote server.
|
||||
menu_launch_type("terminal");
|
||||
wait_still_screen(3);
|
||||
@ -42,6 +45,8 @@ sub run {
|
||||
# Check that we are on the correct computer.
|
||||
# We can tell from the terminal prompt.
|
||||
assert_screen("freerdp_desktop_connected");
|
||||
|
||||
mutex_unlock("kaermorhen_opened");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
|
@ -2,6 +2,8 @@ use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
use lockapi;
|
||||
use mmapi;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
@ -51,10 +53,23 @@ sub run {
|
||||
wait_still_screen(3);
|
||||
send_key("alt-f4");
|
||||
|
||||
# RDP does not allow connections when the user is still logged in
|
||||
# locally, therefore we need to log the user out first.
|
||||
assert_and_click("system_menu_button");
|
||||
assert_and_click("leave_button");
|
||||
assert_and_click("log_out_entry");
|
||||
assert_and_click("log_out_confirm");
|
||||
sleep(10);
|
||||
|
||||
|
||||
# Check that the service is running.
|
||||
$self->root_console(tty => 3);
|
||||
assert_script_run("ps aux | grep rdp", timeout => 10);
|
||||
|
||||
# Create mutex to synchronise with the children.
|
||||
mutex_create("kaermorhen_opened");
|
||||
wait_for_children();
|
||||
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
|
Loading…
Reference in New Issue
Block a user