Print failed tests without using Exception
@@ -182,6 +182,7 @@ def main(args: Optional[List[str]] = None) -> None:
if parsed.subcommand == 'all':
generate_gitignore()
+ with onlinejudge_verify.verify.show_summary():
try:
subcommand_run(paths=[], timeout=parsed.timeout, tle=parsed.tle, jobs=parsed.jobs)
finally:
@@ -189,8 +190,10 @@ def main(args: Optional[List[str]] = None) -> None:
subcommand_docs()
elif parsed.subcommand == 'run':
+ paths = [path.resolve() for path in parsed.path]
generate_gitignore()
- subcommand_run(paths=parsed.path, timeout=parsed.timeout, tle=parsed.tle, jobs=parsed.jobs)
+ with onlinejudge_verify.verify.show_summary():
+ subcommand_run(paths=paths, timeout=parsed.timeout, tle=parsed.tle, jobs=parsed.jobs)
elif parsed.subcommand == 'docs':
generate_gitignore()
