Skip to content

Commit

Permalink
[tests] Skip TLE submissions
Browse files Browse the repository at this point in the history
see #161
  • Loading branch information
RagnarGrootKoerkamp committed Nov 8, 2021
1 parent 965330a commit e3b5c5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@ def timeout():

# Set to true when running as a test.
RUNNING_TEST = False
TEST_TLE_SUBMISSIONS = False
3 changes: 3 additions & 0 deletions bin/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ def add(s):
add(s)
else:
for verdict in ['ACCEPTED'] if accepted_only else config.VERDICTS:
if verdict == 'TIME_LIMIT_EXCEEDED' and not config.TEST_TLE_SUBMISSIONS:
continue

paths += glob(problem.path / 'submissions' / verdict.lower(), '*')

if len(paths) == 0:
Expand Down

0 comments on commit e3b5c5f

Please sign in to comment.