]> iEval git - gruntmaster-daemon.git/commitdiff
Fix undef warning during testing
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 15:04:03 +0000 (17:04 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 15:04:03 +0000 (17:04 +0200)
t/01-jobs.t

index 78dc416cb5a7b4acd20e8f8002ab8fbe990c563f..d0c928b3b2f827a1d37d1cb674c0ab2ae25f2324 100644 (file)
@@ -68,7 +68,7 @@ for my $problem (@problems) {
        my $pbmeta = LoadFile "$problem/meta.yml";
        for (1 .. $pbmeta->{testcnt}) {
                $pbmeta->{infile}[$_ - 1] = read_file "$problem/$_.in" if $pbmeta->{generator} eq 'File';
-               $pbmeta->{okfile}[$_ - 1] = read_file "$problem/$_.ok" if $pbmeta->{runner} eq 'File';
+               $pbmeta->{okfile}[$_ - 1] = read_file "$problem/$_.ok" if $pbmeta->{runner} && $pbmeta->{runner} eq 'File';
        }
        if (exists $pbmeta->{files}) {
                $_->{content} = read_file "$problem/$_->{name}" for values %{$pbmeta->{files}}
This page took 0.031276 seconds and 4 git commands to generate.