From: Marius Gavrilescu Date: Sun, 8 Feb 2015 15:04:03 +0000 (+0200) Subject: Fix undef warning during testing X-Git-Tag: 5999.000_005~39 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=00a45f8933036eabf15f9298af266e5d175121fb;p=gruntmaster-daemon.git Fix undef warning during testing --- diff --git a/t/01-jobs.t b/t/01-jobs.t index 78dc416..d0c928b 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -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}}