Skip to content

Commit

Permalink
use exit code from tox
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin committed Nov 29, 2024
1 parent 34cbd25 commit 6dd038b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mypyc_tox
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ tox_env_vars["TOMLI_USE_MYPYC"] = "1"
shutil.copy2(pyproject_path, backup_path)
try:
use_setuptools()
subprocess.run(["tox", *sys.argv[1:]], env=tox_env_vars)
result = subprocess.run(["tox", *sys.argv[1:]], env=tox_env_vars)
raise SystemExit(result.returncode)
finally:
shutil.copy2(backup_path, pyproject_path)
backup_path.unlink()

0 comments on commit 6dd038b

Please sign in to comment.