Skip to content

Commit 42e1283

Browse files
authored
fix(cli): forward CLI exit code over to the parent (microsoft#801)
1 parent 1f02046 commit 42e1283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playwright/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def main() -> None:
2323
driver_executable = compute_driver_executable()
2424
env = os.environ.copy()
2525
env["PW_CLI_TARGET_LANG"] = "python"
26-
subprocess.run([str(driver_executable), *sys.argv[1:]], env=env)
26+
completed_process = subprocess.run([str(driver_executable), *sys.argv[1:]], env=env)
27+
sys.exit(completed_process.returncode)
2728

2829

2930
if __name__ == "__main__":

0 commit comments

Comments
 (0)