test: align CLI help checks with bounded output

This commit is contained in:
mikecarper committed 2026-10-20 13:35:03 -07:00
1 parent 2fbc075aaa
commit 0a9939b34b
4 files changed
+37 -7

No files matched your search

+2 -1
View File
@@ -159,7 +159,8 @@ int main() {
self.assertIn("handleLocalControlCommand(command, reply, reply_capacity)", handler)
terminal = extract_braced(mesh, "void MyMesh::handleTerminalCommand(")
self.assertIn("handleLocalControlCommand(command, local_reply, sizeof(local_reply))", terminal)
self.assertIn('get display.touch\\r\\n', terminal)
help_body = extract_braced(terminal, 'else if (strcmp(command, "help") == 0)')
self.assertIn('get/set display.touch <on|off> (this boot)\\r\\n', help_body)
# No persistent preference schema or write is involved.
setter = extract_braced(local, 'if (strncmp(command, "set display.touch", 17) == 0')
self.assertNotIn("savePrefs", setter)