Skip to content

Commit

Permalink
wip: bait out errors in pathological_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Jul 6, 2022
1 parent 476f7b4 commit 7624c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pathological_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def badhash(ref):
passed = 0
errored = 0
ignored = 0
TIMEOUT = 5
TIMEOUT = 1

def run_test(inp, regex):
parser = argparse.ArgumentParser(description='Run cmark tests.')
Expand Down Expand Up @@ -138,12 +138,12 @@ def run_test(inp, regex):
p.terminate()
p.join()
print('[TIMED OUT]')
if allowed_failures[description]:
if description in allowed_failures:
ignored += 1
else:
errored += 1
elif p.exitcode != 0:
if allowed_failures[description]:
if description in allowed_failures:
ignored += 1
else:
errored += 1
Expand Down

0 comments on commit 7624c5c

Please sign in to comment.