From a7a946e3ed2385e62e0555432ae6a6b427a7d386 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 11 Feb 2016 15:07:40 +0000 Subject: [PATCH 1/1] Copy input to Scaleway in Interactive.pm --- lib/Gruntmaster/Daemon/Runner/Interactive.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/); -- 2.39.2