Fix test mock input
This commit is contained in:
+9
-4
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user