1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

test(core): ignore {0} in bitcoin-only firmware

This commit is contained in:
Martin Milata 2024-03-05 17:09:57 +01:00
parent fd3919254c
commit a433f8f914
2 changed files with 3 additions and 1 deletions

View File

@ -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 build_firmware"
- run: nix-shell --run "poetry run make -C core sizecheck" - run: nix-shell --run "poetry run make -C core sizecheck"
if: matrix.coins == 'universal' && matrix.type != 'debuglink' 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 - uses: actions/upload-artifact@v4
with: with:
name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }} name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}

View File

@ -8,7 +8,7 @@ EXCEPTIONS+=( "omni" ) # OMNI is part of the bitcoin app
EXCEPTIONS+=( "dash" ) EXCEPTIONS+=( "dash" )
EXCEPTIONS+=( "confirm_ethereum_tx" "confirm_ethereum_staking_tx" ) # model-specific, so is in layout/__init__.py instead of ethereum/layout.py 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 (section__key delimiter)
EXCEPTIONS+=( "{}" ) # ignoring the translations blob (template identifier) EXCEPTIONS+=( "{}" "{0}" ) # ignoring the translations blob (template identifier)
GREP_ARGS=() GREP_ARGS=()
for exception in "${EXCEPTIONS[@]}"; do for exception in "${EXCEPTIONS[@]}"; do