Skip to content

Commit

Permalink
Allow more verbose execution of aspect integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martis42 committed Oct 29, 2023
1 parent e2ab5e2 commit 2e2d52e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/aspect/execute_tests_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from dataclasses import dataclass, field
from os import environ
from pathlib import Path
from shlex import join as join_cmd
from shutil import which
from typing import Dict, List, Optional

Expand Down Expand Up @@ -215,8 +216,11 @@ def execute_tests(
continue
print(f"\n>>> Execute '{test.name}' with Bazel {version.bazel} and Python {version.python}")

dwyu_cmd = make_cmd(test_cmd=test.cmd, startup_args=[f"--output_base={output_base}"], extra_args=extra_args)
if verbose:
print(f"Executing cmd: {join_cmd(dwyu_cmd)}")
process = subprocess.run(
make_cmd(test_cmd=test.cmd, startup_args=[f"--output_base={output_base}"], extra_args=extra_args),
dwyu_cmd,
env=test_env,
encoding="utf-8",
stdout=subprocess.PIPE,
Expand Down

0 comments on commit 2e2d52e

Please sign in to comment.