From: Marius Gavrilescu Date: Thu, 27 Feb 2014 07:55:16 +0000 (+0200) Subject: Pass test number as argument to verifier X-Git-Tag: 5999.000_002~3 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=03007d04328a9959143a7c6ad8128a4bca454620;p=gruntmaster-daemon.git Pass test number as argument to verifier --- diff --git a/lib/Gruntmaster/Daemon/Runner/Verifier.pm b/lib/Gruntmaster/Daemon/Runner/Verifier.pm index af15393..213b77b 100644 --- a/lib/Gruntmaster/Daemon/Runner/Verifier.pm +++ b/lib/Gruntmaster/Daemon/Runner/Verifier.pm @@ -19,7 +19,7 @@ sub run{ $meta->{files}{prog}{run}->($meta->{files}{prog}{name}, fds => [qw/0 input 1 >output/], map {defined $meta->{$_} ? ($_ => $meta->{$_}) : () } qw/timeout olimit mlimit/); try { - $meta->{files}{ver}{run}->($meta->{files}{ver}{name}, fds => [qw/0 input 3 output 1 >result/]); + $meta->{files}{ver}{run}->($meta->{files}{ver}{name}, fds => [qw/0 input 3 output 1 >result/], args => [$test]); } catch { die [WA, "Wrong answer"] };