From 296f51a0596eeea9f41a09385f2f7e2eef567581 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 11 Feb 2025 17:13:35 +0200 Subject: [PATCH] ci(core): add timestamp to device debug logs It would help to find the relevant device logs for a specific failing test. [no changelog] --- .github/workflows/core-hw.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/core-hw.yml b/.github/workflows/core-hw.yml index 0b233085c0..07435b36de 100644 --- a/.github/workflows/core-hw.yml +++ b/.github/workflows/core-hw.yml @@ -53,7 +53,7 @@ jobs: - run: nix-shell --run "poetry run trezorctl get-features" - run: | # log serial console to file; sleep is used because tio needs stdin that is not /dev/null - nix-shell --arg hardwareTest true --run "sleep 8h | tio --no-autoconnect /dev/ttyTREZOR &> trezor.log" & + nix-shell --arg hardwareTest true --run "sleep 8h | tio --timestamp --no-autoconnect /dev/ttyTREZOR &> trezor.log" & nix-shell --run "poetry run pytest -v tests/device_tests $TESTOPTS" - run: tail -n50 trezor.log || true if: failure() @@ -94,7 +94,7 @@ jobs: - run: nix-shell --run "poetry run trezorctl get-features" - run: | # log serial console to file; sleep is used because tio needs stdin that is not /dev/null - nix-shell --arg hardwareTest true --run "sleep 8h | tio --no-autoconnect /dev/ttyTREZOR &> trezor.log" & + nix-shell --arg hardwareTest true --run "sleep 8h | tio --timestamp --no-autoconnect /dev/ttyTREZOR &> trezor.log" & nix-shell --arg fullDeps true --run "./core/tests/run_tests_device_emu_monero.sh --trezor-path webusb:" - run: tail -n50 trezor.log || true if: failure()