chore(tests): suppress sdl errors in python unit tests
What changed, and why it matters
This commit changes only a test script. It adds an environment variable that tells SDL (a multimedia library used during testing) to only log critical input-related messages, reducing noisy test output. There is no change to the actual Trezor firmware or wallet security code.
No security action needed. This is a benign test-infrastructure change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch sets SDL_LOGGING=”input=critical” in core/tests/run_tests.sh, alongside the existing SDL_VIDEODRIVER=dummy. This suppresses non-critical SDL input log noise during Python unit tests that run the firmware emulator. It is a test-harness-only logging configuration change.
Changed components
core/tests/run_tests.shInspect captured patch +1 / −0
diff --git a/core/tests/run_tests.sh b/core/tests/run_tests.sh
index 21df685c..b53029f3 100755
--- a/core/tests/run_tests.sh
+++ b/core/tests/run_tests.sh
@@ -5,6 +5,7 @@ declare -i passed=0 failed=0 exit_code=0
declare COLOR_GREEN='\e[32m' COLOR_RED='\e[91m' COLOR_RESET='\e[39m'
declare MICROPYTHON="${MICROPYTHON:-../build-xtask/artifacts/latest/firmware-emu -X heapsize=2M}"
export SDL_VIDEODRIVER=dummy
+export SDL_LOGGING="input=critical"
print_summary() {
echo
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.