Fix undef warning during testing
[gruntmaster-daemon.git] / 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.010657 seconds and 4 git commands to generate.