Fix test mock input
Skyweave Test, Lint, and Deploy Ritual / Test and Lint Code (push) Failing after 29s
Skyweave Test, Lint, and Deploy Ritual / Deploy to Roof Unit (push) Has been skipped

This commit is contained in:
wes
2025-06-17 14:01:17 -04:00
parent f1ebf6fa22
commit 1d11e42145
+9 -4
View File
@@ -54,10 +54,15 @@ describe("Skyweave Utility Functions Module", function()
it("should correctly decode a valid qmicli output", function() it("should correctly decode a valid qmicli output", function()
-- 1. Define the simulated raw output from a successful qmicli invocation. -- 1. Define the simulated raw output from a successful qmicli invocation.
local mock_qmicli_output = "QMI-Client: Synchronous call... \n" .. local mock_qmicli_output = [[
"[/dev/cdc-wdm0] UIM transparent read result: \n" .. [17 Jun 2025, 13:57:41] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
"Read result:\n" .. [/dev/cdc-wdm0] Successfully read information from the UIM:
"\t'89:01:41:03:27:25:30:79:07:87:f9'\n" Card result:
SW1: '0x90'
SW2: '0x00'
Read result:
98:10:14:30:72:52:03:97:70:78
]]
-- 2. Mock the command executor to return our simulated data. -- 2. Mock the command executor to return our simulated data.
utils.execute_command = function(command) utils.execute_command = function(command)