tsreadconfig();
-die unless @ARGV==2;
-
-our ($action, $whhost) = @ARGV;
+die unless @ARGV>=2;
+our $action = shift @ARGV;
+our $whhost = shift @ARGV;
our $ho;
#---------- actions ----------
sub act_prealloc () {
+ die if @ARGV;
noop_if_playing();
compute_test_sharetype();
$ho = selecthost($whhost, undef, 1);
}
sub act_start_test () {
+ die if @ARGV;
compute_test_sharetype();
$ho = selecthost($whhost);
return unless $ho->{Shared};
}
sub act_post_test_ok () {
+ die if @ARGV;
compute_test_sharetype();
$ho = selecthost($whhost);
return unless $ho->{Shared};