From 4aadfa1f4f6aa3838fbebc5eb51e02d90dfcf1a5 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 10 Jun 2025 18:57:03 +0300 Subject: [PATCH] ci(core): make sure emulators are not failing on startup [no changelog] --- .github/workflows/core.yml | 1 + core/Makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index f2fb12c3a9..9c22ec99d4 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -193,6 +193,7 @@ jobs: - run: nix-shell --run "poetry run make -C core build_bootloader_emu" if: matrix.coins == 'universal' && matrix.asan == 'noasan' - run: nix-shell --run "poetry run make -C core build_unix_frozen" + - run: nix-shell --run "poetry run make -C core test_emu_sanity" - run: cp core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-${{ matrix.model }}-${{ matrix.coins }} - uses: actions/upload-artifact@v4 with: diff --git a/core/Makefile b/core/Makefile index 2ce733d985..10e8b1814b 100644 --- a/core/Makefile +++ b/core/Makefile @@ -182,6 +182,9 @@ test_rust: ## run rs unit tests --no-default-features --features $(LAYOUT_FEATURE),power_manager,test \ -- --test-threads=1 --nocapture +test_emu_sanity: ## make sure the emulator doesn't crash on startup + $(EMU) --disable-animation --headless --temporary-profile -c -- trezorctl -v ping "Hello World!" + test_emu: ## run selected device tests from python-trezor $(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS) --lang=$(TEST_LANG)