Support passing arguments to programs in Format.pm
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Format.pm
index cfc3cf306d25cf40aa37392fd0280f2c580488ca..41bfc0ced8c88274acb31c1c1a1cd3e4dc4a9569 100644 (file)
@@ -73,6 +73,7 @@ sub mkrun{
                get_logger->trace("Running $name...");
                my $basename = fileparse $name, qr/[.][^.]*/s;
                my @args = ('--nobody');
+               push @args, '--no-close' if $ENV{TEST_VERBOSE};
                push @args, '--timeout', $args{timeout} if $args{timeout};
                push @args, '--mlimit',  $args{mlimit}  if $args{mlimit};
                push @args, '--olimit',  $args{olimit}  if $args{olimit};
@@ -81,7 +82,7 @@ sub mkrun{
                while (my ($fd, $file) = $it->()) {
                        push @args, "--fd=$fd $file";
                }
-               execlist $basename, @args, "./$basename"
+               execlist $basename, @args, '--', "./$basename", @{$args{args}}
        }
 }
 
This page took 0.010568 seconds and 4 git commands to generate.