mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-11-04 09:47:16 +00:00
test: align CLI help checks with bounded output
This commit is contained in:
1 parent
2fbc075aaa
commit
0a9939b34b
4 files changed
+37
-7
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user