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 051470d commit 1377a8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ def generate_and_run_project(
call = [sys.executable, "run.py"]

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

# check the pipeline run is successful
Expand Down

0 comments on commit 1377a8d

Please sign in to comment.