From a433f8f9140f19c8c4ca8b98aea8f330ea1aadac Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Tue, 5 Mar 2024 17:09:57 +0100 Subject: [PATCH] test(core): ignore {0} in bitcoin-only firmware --- .github/workflows/core.yml | 2 ++ tools/check-bitcoin-only | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 57f55285aa..57ee87e7b1 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -51,6 +51,8 @@ jobs: - run: nix-shell --run "poetry run make -C core build_firmware" - run: nix-shell --run "poetry run make -C core sizecheck" if: matrix.coins == 'universal' && matrix.type != 'debuglink' + - run: nix-shell --run "poetry run ./tools/check-bitcoin-only core/build/firmware/firmware.bin" + if: matrix.coins == 'btconly' && matrix.type != 'debuglink' - uses: actions/upload-artifact@v4 with: name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }} diff --git a/tools/check-bitcoin-only b/tools/check-bitcoin-only index 116d6c0459..5944153b55 100755 --- a/tools/check-bitcoin-only +++ b/tools/check-bitcoin-only @@ -8,7 +8,7 @@ EXCEPTIONS+=( "omni" ) # OMNI is part of the bitcoin app EXCEPTIONS+=( "dash" ) EXCEPTIONS+=( "confirm_ethereum_tx" "confirm_ethereum_staking_tx" ) # model-specific, so is in layout/__init__.py instead of ethereum/layout.py EXCEPTIONS+=( "__" ) # ignoring the translations blob (section__key delimiter) -EXCEPTIONS+=( "{}" ) # ignoring the translations blob (template identifier) +EXCEPTIONS+=( "{}" "{0}" ) # ignoring the translations blob (template identifier) GREP_ARGS=() for exception in "${EXCEPTIONS[@]}"; do