X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FRunner%2FFile.pm;h=d521acf40c033c0056884b6ac5859df554473040;hp=c0811634b4e244f790739b22c4ddedcd9294e1bd;hb=cedd5d682a2777c1c42875a3dfba892ebb293de3;hpb=333da65132be56555d5787751ca5ed869b9af1d0 diff --git a/lib/Gruntmaster/Daemon/Runner/File.pm b/lib/Gruntmaster/Daemon/Runner/File.pm index c081163..d521acf 100644 --- a/lib/Gruntmaster/Daemon/Runner/File.pm +++ b/lib/Gruntmaster/Daemon/Runner/File.pm @@ -6,6 +6,7 @@ use warnings; use re '/s'; use Gruntmaster::Daemon::Constants qw/WA/; +use Gruntmaster::Daemon::Format qw/copy_to_vm copy_from_vm/; use File::Slurp qw/slurp/; use Log::Log4perl qw/get_logger/; @@ -16,7 +17,9 @@ our $VERSION = '5999.000_005'; sub run{ my ($test, $meta) = @_; get_logger->trace("Running on test $test..."); + copy_to_vm 'input'; $meta->{files}{prog}{run}->($meta->{files}{prog}{name}, fds => [qw/0 input 1 >output/], map { $_ => $meta->{$_} } qw/timeout olimit mlimit/); + copy_from_vm 'output'; my $out = slurp 'output'; my $ok; if (exists $meta->{okfile}) { # uncoverable branch false