From: Marius Gavrilescu Date: Thu, 11 Feb 2016 15:07:40 +0000 (+0000) Subject: Copy input to Scaleway in Interactive.pm X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=0dab5f26037acd56621c8c9f9b934c71007db832 Copy input to Scaleway in Interactive.pm --- 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/);