Skip to content

Commit

Permalink
verbose tests output
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov committed Oct 12, 2023
1 parent cc48de2 commit 6fe8ecb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ def generate_and_run_project(
call = [sys.executable, "run.py"]

try:
subprocess.check_call(
output = subprocess.check_output(
call,
cwd=str(dst_path),
env=os.environ.copy(),
)
except Exception as e:
raise RuntimeError(
f"Failed to run project generated with parameters: {answers}"
f"Failed to run project generated with parameters: {answers}\n"
f"{output}"
) from e

# check the pipeline run is successful
Expand Down

0 comments on commit 6fe8ecb

Please sign in to comment.