Skip to content

Commit

Permalink
Merge pull request #2 from woodrush/add-exit-code
Browse files Browse the repository at this point in the history
Exit main.py with the exit code provided from pytest.main
  • Loading branch information
kktsubota authored Nov 17, 2023
2 parents 50cc8ec + f36c7c3 commit a7b9320
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manga109tools/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
from pathlib import Path
import pytest
import sys


def parse_args() -> argparse.Namespace:
Expand Down Expand Up @@ -35,7 +36,8 @@ def main():
args.exception_path.as_posix(),
]

pytest.main(pytest_args)
exit_code = pytest.main(pytest_args)
sys.exit(exit_code)
else:
raise NotImplementedError

Expand Down

0 comments on commit a7b9320

Please sign in to comment.