X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FRunner%2FInteractive.pm;fp=lib%2FGruntmaster%2FDaemon%2FRunner%2FInteractive.pm;h=81fe7b6030204bf2b5d395d955ab4dd73b80b091;hp=45f4ae41ee1b089ba612c9f3c21519658ddb38fd;hb=a7a946e3ed2385e62e0555432ae6a6b427a7d386;hpb=1cebb7de90ce9e5a25ef5805ff9b54936f64ac71 diff --git a/lib/Gruntmaster/Daemon/Runner/Interactive.pm b/lib/Gruntmaster/Daemon/Runner/Interactive.pm index 45f4ae4..81fe7b6 100644 --- a/lib/Gruntmaster/Daemon/Runner/Interactive.pm +++ b/lib/Gruntmaster/Daemon/Runner/Interactive.pm @@ -6,7 +6,7 @@ use warnings; use File::Slurp qw/slurp/; use Gruntmaster::Daemon::Constants qw/WA/; -use Gruntmaster::Daemon::Format qw/copy_from_vm/; +use Gruntmaster::Daemon::Format qw/copy_from_vm copy_to_vm/; use Log::Log4perl qw/get_logger/; use POSIX qw/mkfifo/; use Try::Tiny; @@ -18,6 +18,7 @@ our $VERSION = '5999.000_005'; sub run{ my ($test, $meta) = @_; get_logger->trace("Running on test $test..."); + copy_to_vm 'input'; my @fds = $ENV{GRUNTMASTER_VM} ? qw,0 ../fifo1 1 >../fifo2, : qw/0 fifo1 1 >fifo2/; $meta->{files}{prog}{run}->($meta->{files}{prog}{name}, nonblocking => 1, fds => \@fds, map { $_ => $meta->{$_} } qw/timeout mlimit/);