Skip to content

Commit

Permalink
judge: Sort snippet names in log
Browse files Browse the repository at this point in the history
  • Loading branch information
klenin committed Dec 16, 2022
1 parent ba2f19d commit 549f175
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions judge.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1287,11 +1287,12 @@ sub generate_snippets {
{ save_output => 1, show_output => 1 }, $generate_cmd, [ $tags ], \%limits) or die;
$sp_report->ok or die;

for my $sn (@{$generators->{$gen_id}}) {
my @snippet_names = @{$generators->{$gen_id}};
for my $sn (@snippet_names) {
CATS::BinaryFile::load(CATS::FileUtil::fn([ $cfg->rundir, $sn ]), \my $data);
$results->{$sn} = $data;
}
log_msg("Generated: %s\n", join ', ', @{$generators->{$gen_id}});
log_msg("Generated: %s\n", join ', ', sort @snippet_names);
}
$judge->save_problem_snippets(
$r->{problem_id}, $r->{contest_id}, $r->{account_id}, $results) or die;
Expand Down

0 comments on commit 549f175

Please sign in to comment.