Skip to content

Commit

Permalink
Use DEBUG level for pytest logging in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mlech-reef committed Dec 13, 2024
1 parent 1f1627f commit 8c41906
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion b2/_internal/_cli/autocomplete_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import shutil
import signal
import subprocess
import sys
import textwrap
from datetime import datetime
from importlib.util import find_spec
Expand Down Expand Up @@ -229,7 +230,7 @@ def is_enabled(self) -> bool:
def _silent_success_run_with_tty(
cmd: list[str], timeout: int = 30, env: dict | None = None
) -> bool:
emulate_tty = not os.isatty(0) # is True under GHA or pytest-xdist
emulate_tty = not sys.stdin.isatty() # is True under GHA or pytest-xdist
if emulate_tty and not find_spec('pexpect'):
emulate_tty = False
logger.warning(
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _detect_python_nox_id() -> str:

PYTEST_GLOBAL_ARGS = []
if CI:
PYTEST_GLOBAL_ARGS.append("-vv")
PYTEST_GLOBAL_ARGS.extend(["--log-cli-level=DEBUG", "-vv"])


def pdm_install(
Expand Down

0 comments on commit 8c41906

Please sign in to comment.