1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-30 01:23:08 +00:00
os-autoinst-distri-fedora/tests/_podman_client.pm
Adam Williamson 1a65993d36 Add a perltidy check and apply it to the entire codebase
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-28 14:38:38 -07:00

34 lines
741 B
Perl

use base "installedtest";
use strict;
use lockapi;
use mmapi;
use tapnet;
use testapi;
use utils;
sub run {
my $self = shift;
$self->root_console(tty => 3);
# wait for server to be set up
mutex_lock "podman_server_ready";
mutex_unlock "podman_server_ready";
# connect to server then tell server we're done
my $ret = script_run "curl http://172.16.2.114";
mutex_create "podman_connect_done";
# sleep a bit to give server time to pick up the mutex
# server tries every 5 seconds, but an attempt can fail,
# and wait 10 seconds before retry
sleep 30;
# die if connection failed
die "connection failed!" if ($ret);
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et: