projects
/
gruntmaster-daemon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add contest support to filesystem infiles/okfiles
[gruntmaster-daemon.git]
/
lib
/
Gruntmaster
/
Daemon
/
Runner
/
File.pm
diff --git
a/lib/Gruntmaster/Daemon/Runner/File.pm
b/lib/Gruntmaster/Daemon/Runner/File.pm
index 34ea04d80558fb13b7d7d13f41a401c2a0c14d0d..7f67fb301a35a7b359c879a6c374bd5803e3bce6 100644
(file)
--- a/
lib/Gruntmaster/Daemon/Runner/File.pm
+++ b/
lib/Gruntmaster/Daemon/Runner/File.pm
@@
-21,7
+21,8
@@
sub run{
if (exists $meta->{okfile}) {
$ok = $meta->{okfile}[$test - 1]
} else {
if (exists $meta->{okfile}) {
$ok = $meta->{okfile}[$test - 1]
} else {
- $ok = slurp "/var/lib/gruntmasterd/pb/$meta->{problem}/$test.ok"
+ my $ct = defined $Gruntmaster::Data::contest ? "ct/$Gruntmaster::Data::contest" : '';
+ $ok = slurp "/var/lib/gruntmasterd/$ct/pb/$meta->{problem}/$test.ok"
}
$out =~ s/^\s+//;
}
$out =~ s/^\s+//;
This page took
0.009196 seconds
and
4
git commands to generate.