mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-19 02:52:11 +00:00
ci(core): add timestamp to device debug logs
It would help to find the relevant device logs for a specific failing test. [no changelog]
This commit is contained in:
parent
0456fdb826
commit
296f51a059
4
.github/workflows/core-hw.yml
vendored
4
.github/workflows/core-hw.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run trezorctl get-features"
|
- run: nix-shell --run "poetry run trezorctl get-features"
|
||||||
- run: |
|
- run: |
|
||||||
# log serial console to file; sleep is used because tio needs stdin that is not /dev/null
|
# 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"
|
nix-shell --run "poetry run pytest -v tests/device_tests $TESTOPTS"
|
||||||
- run: tail -n50 trezor.log || true
|
- run: tail -n50 trezor.log || true
|
||||||
if: failure()
|
if: failure()
|
||||||
@ -94,7 +94,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run trezorctl get-features"
|
- run: nix-shell --run "poetry run trezorctl get-features"
|
||||||
- run: |
|
- run: |
|
||||||
# log serial console to file; sleep is used because tio needs stdin that is not /dev/null
|
# 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:"
|
nix-shell --arg fullDeps true --run "./core/tests/run_tests_device_emu_monero.sh --trezor-path webusb:"
|
||||||
- run: tail -n50 trezor.log || true
|
- run: tail -n50 trezor.log || true
|
||||||
if: failure()
|
if: failure()
|
||||||
|
Loading…
Reference in New Issue
Block a user