Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit 41ddb5d

Browse files
committed
Add error catching for when test setup fails
1 parent b39e78a commit 41ddb5d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

website/test_doc_commandline.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ def main(before, dir, dry_run, file):
3939
print("Setting up the tests...")
4040
for cmd in before:
4141
print(cmd)
42-
subprocess.run(cmd, shell=True, stderr=subprocess.DEVNULL, check=True)
42+
try:
43+
subprocess.run(cmd, shell=True, stderr=subprocess.DEVNULL, check=True)
44+
except subprocess.CalledProcessError as e:
45+
print(" ERROR setting up the tests")
46+
print(e.output)
47+
raise
4348
print("Running tests...")
4449
index = 1
4550
for fname in file:

0 commit comments

Comments
 (0)