Copy input to Scaleway in Interactive.pm scaleway
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 11 Feb 2016 15:07:40 +0000 (15:07 +0000)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 17 Apr 2022 18:43:09 +0000 (21:43 +0300)
lib/Gruntmaster/Daemon/Runner/Interactive.pm

index 45f4ae41ee1b089ba612c9f3c21519658ddb38fd..81fe7b6030204bf2b5d395d955ab4dd73b80b091 100644 (file)
@@ -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/);
This page took 0.011383 seconds and 4 git commands to generate.