Skip to content

Commit

Permalink
Re-enabble debug output
Browse files Browse the repository at this point in the history
Change-Id: I254cfae1da638de3fb2a67eb5ca15d83cff22d24
  • Loading branch information
ThoFrank committed Jan 7, 2025
1 parent 763ff2e commit becfec3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [ merge_group, pull_request]
jobs:
integration-test:
runs-on: ubuntu-latest
env:
BSW_PYTEST_DEBUG: TRUE
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
Expand Down
5 changes: 3 additions & 2 deletions test/pyTest/capture_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import time
from target_info import TargetInfo
from pty_forwarder import PtyForwarder
from os import symlink, unlink
from os import symlink, unlink, environ


capture_serial_by_name = {}
Expand Down Expand Up @@ -209,7 +209,8 @@ def _read_thread_func(self):
for b in super().read():
line.append(b)
if b in b'\n':
# print(f"[{self._target_name}] In: {line.decode()}")
if environ["BSW_PYTEST_DEBUG"] == "TRUE":
print(f"[{self._target_name}] In: {line.decode()}")
self._check_line(line)
self._received_lines_queue.put(line)
line = bytearray()
Expand Down

0 comments on commit becfec3

Please sign in to comment.