From 5a5d013f06a9a01e611182d0df0a79c43113d704 Mon Sep 17 00:00:00 2001 From: mikecarper Date: Fri, 16 Oct 2026 03:06:35 -0700 Subject: [PATCH] Restore terminal profile checks for current NodeInfo policy --- .github/workflows/run-unit-tests.yml | 1 + test/test_companion_terminal_profile.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 382e59f00..af6d88ffc 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -573,6 +573,7 @@ jobs: - name: Verify Companion ASCII defaults and USB session cleanup run: | + python3 -B test/test_companion_terminal_profile.py python3 -B test/test_companion_usb_default.py python3 -B test/test_companion_usb_input.py python3 -B test/test_arduino_serial_backpressure.py -v diff --git a/test/test_companion_terminal_profile.py b/test/test_companion_terminal_profile.py index 1e6a50274..3ae9f5c36 100644 --- a/test/test_companion_terminal_profile.py +++ b/test/test_companion_terminal_profile.py @@ -92,8 +92,11 @@ for help_line in (' board\\r\\n', ' version\\r\\n', ' get mt.node / get mt.shortname\\r\\n', ' set mt.node (saved; use a unique ID)\\r\\n', ' set mt.shortname <1..4 UTF-8 characters|default> (saved; NodeInfo uses 4 bytes)\\r\\n', - ' send mt.nodeinfo (one manual advert; no automatic adverts)\\r\\n'): + ' send mt.nodeinfo (GPS-free; also automatic after first chat)\\r\\n'): assert help_line in help_branch +# Explicit NodeInfo remains available, but first successful chat also arms +# separate GPS-free metadata. Do not restore the obsolete manual-only policy. +assert "no automatic adverts" not in help_branch assert re.search( r"#if COMPANION_FEATURE_MEMORY_DIAGNOSTICS\s+" r'terminalOutput\(\)\.print\(" memory\\r\\n"\);\s+#endif',