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',