X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FRunner%2FFile.pm;fp=lib%2FGruntmaster%2FDaemon%2FRunner%2FFile.pm;h=d521acf40c033c0056884b6ac5859df554473040;hp=c0811634b4e244f790739b22c4ddedcd9294e1bd;hb=1cebb7de90ce9e5a25ef5805ff9b54936f64ac71;hpb=0ad36cae798f1d0698bfea2130f29707ee2a47e9 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