use base "installedtest"; use strict; use testapi; use lockapi; use mmapi; sub run { my $self = shift; # start up iscsi target assert_script_run "printf '\n backing-store /dev/vdb\n incominguser test weakpassword\n' > /etc/tgt/conf.d/openqa.conf"; # open firewall port assert_script_run "firewall-cmd --add-service=iscsi-target"; assert_script_run "systemctl restart tgtd.service"; assert_script_run "systemctl is-active tgtd.service"; # report ready, wait for children mutex_create('iscsi_server_ready'); wait_for_children; # upload logs in case of child failures $self->post_fail_hook(); } sub test_flags { return { fatal => 1 }; } 1; # vim: set sw=4 et: