Skip to content

Commit 7b5234a

Browse files
- Amended test.
1 parent 4117575 commit 7b5234a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/robot/functional/mcp.robot

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,8 @@ Start MCP Servers
5858

5959
Parse MCP JSON Output
6060
[Arguments] ${stdout}
61-
${raw}= Set Variable ${stdout}
62-
${start}= Evaluate r'''${raw}'''.find('{')
63-
${end}= Evaluate r'''${raw}'''.rfind('}')
64-
Run Keyword If ${start} == -1 or ${end} == -1 Fail Could not locate JSON braces in output
65-
${fragment}= Evaluate r'''${raw}'''[${start}:${end}+1]
66-
${parsed}= Evaluate json.loads(r'''${fragment}''') json
67-
[Return] ${parsed}
61+
${parsed}= Evaluate __import__('json').loads(args[0]) ${stdout}
62+
RETURN ${parsed}
6863

6964
*** Settings ***
7065
Suite Setup Start MCP Servers

0 commit comments

Comments
 (0)