2020-05-27 22:48:02 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use lockapi;
|
|
|
|
use mmapi;
|
|
|
|
use tapnet;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2023-02-12 22:59:37 +00:00
|
|
|
$self->root_console(tty => 3);
|
2020-05-27 22:48:02 +00:00
|
|
|
# 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
|
2020-07-17 20:42:48 +00:00
|
|
|
my $ret = script_run "curl http://172.16.2.114";
|
2020-05-27 22:48:02 +00:00
|
|
|
mutex_create "podman_connect_done";
|
2020-06-05 19:32:53 +00:00
|
|
|
# sleep a bit to give server time to pick up the mutex
|
|
|
|
sleep 5;
|
2020-05-27 22:48:02 +00:00
|
|
|
# die if connection failed
|
|
|
|
die "connection failed!" if ($ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sub test_flags {
|
2023-02-12 22:59:37 +00:00
|
|
|
return {fatal => 1};
|
2020-05-27 22:48:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|