Merge branch 'master' into scaleway
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon.pm
index f37eaf6eec4b84658ef333feec2695204386318a..b8c6b5c5c839052baf31bd6a50d42d5cf3298cac 100644 (file)
@@ -7,7 +7,7 @@ use warnings;
 our $VERSION = '5999.000_005';
 
 use Gruntmaster::Daemon::Constants qw/ERR/;
-use Gruntmaster::Daemon::Format qw/prepare_files stopvms/;
+use Gruntmaster::Daemon::Format qw/prepare_files copy_from_vm stopvms/;
 
 use File::Slurp qw/read_file/;
 use File::Temp qw/tempdir/;
@@ -21,6 +21,7 @@ use constant FORMAT_EXTENSION => {
        BRAINFUCK => 'bf',
        C => 'c',
        CPP => 'cpp',
+       D => 'd',
        GCCGO => 'go',
        GOLANG => 'go',
        GOLFSCRIPT => 'gs',
@@ -28,6 +29,7 @@ use constant FORMAT_EXTENSION => {
        JAVA => 'java',
        JULIA => 'jl',
        MONO => 'cs',
+       OBERON => 'm',
        OCAML => 'ml',
        PASCAL => 'pas',
        PERL => 'pl',
@@ -82,6 +84,7 @@ sub process{
 
                        if (ref $result) {
                                my $result_text = $result->[1];
+                               copy_from_vm 'result';
                                $result_text .= ': ' . read_file 'result' if -s 'result';
                                get_logger->trace("Test $test result is " . $result_text);
                                push @full_results, {id => $test, result => $result->[0], result_text => $result_text, time => time - $start_time}
This page took 0.010453 seconds and 4 git commands to generate.