Skip to content

test: gate the bitcoin-only suite on the bitcoin-only product - #34

Merged
BitHighlander merged 1 commit into
masterfrom
fix/715-bitcoin-only-guard
Aug 21, 2026
Merged

test: gate the bitcoin-only suite on the bitcoin-only product#34
BitHighlander merged 1 commit into
masterfrom
fix/715-bitcoin-only-guard

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

Adds requires_bitcoinOnly() — the inverse of requires_fullFeature() — and applies it in test_msg_bitcoin_only_variant.setUp().

The file describes the bitcoin-only product, but CI points the pyk suite at the full emulator image, so it ran there too. Most of it passes either way; the OP_RETURN test does not, because on the multi-chain build the same transaction decodes a THORChain memo and draws more screens ([3,3,3,3,3,8] vs bitcoin-only [3,3,8]). Category error, not a finding.

The guard could not be written until now, and the file's own docstring says so: variant_getName() answered "Emulator" for both products. keepkey-firmware #495 fixed that, and this is the first thing it buys.

full emulator 620 passed, 33 skipped, 0 failed
bitcoin-only emulator 11 passed, 0 skipped, 0 failed

Adds requires_bitcoinOnly(), the inverse of requires_fullFeature(), and applies
it in test_msg_bitcoin_only_variant.setUp().

The file describes the BITCOIN-ONLY product, but CI points the pyk suite at the
full emulator image, so it ran there too. Most of it passes either way; the
OP_RETURN test does not, because on the multi-chain build the same transaction
decodes a THORChain memo and draws more screens ([3,3,3,3,3,8] against the
bitcoin-only [3,3,8]). That is a category error, not a finding.

The guard could not be written until now, and the file's own docstring says so:
variant_getName() answered "Emulator" for BOTH products, so a bitcoin-only
emulator was indistinguishable from a full one. keepkey-firmware #495 fixed
that, and this is the first thing it buys.

Measured after the guard:

    full emulator      620 passed, 33 skipped, 0 failed
    bitcoin-only emu    11 passed,  0 skipped, 0 failed
@BitHighlander
BitHighlander merged commit 1ed34a7 into master Aug 21, 2026
2 checks passed
@BitHighlander
BitHighlander deleted the fix/715-bitcoin-only-guard branch August 21, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant