[PATCH 11/23] rteval MCP: Fix test_new_tools.py to find rteval result files

John Kacur <[email protected]>
Newsgroups org.kernel.vger.linux-rt-users
Message-ID <[email protected]>
Update glob pattern from "*.xml" to "rteval-*/summary.xml" to correctly
locate rteval result files in their subdirectories.

The original test looked for XML files directly in the top-level directory,
but rteval stores results in subdirectories like rteval-20260714-1/summary.xml.

Changes:
- test_find_best_worst: Use rteval-*/summary.xml pattern
- test_filter_results: Use rteval-*/summary.xml pattern

Testing:
- Successfully finds 13 rteval result files
- Works from both rteval/ and rteval/mcp-server/ directories
- Shows best/worst results correctly (1355µs to 3499µs range)
- Filters by kernel version correctly (12 of 13 match "7.0")

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: John Kacur <[email protected]>
---
 mcp-server/tests/test_new_tools.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mcp-server/tests/test_new_tools.py b/mcp-server/tests/test_new_tools.py
index d623dba72d74..cc6456960785 100644
--- a/mcp-server/tests/test_new_tools.py
+++ b/mcp-server/tests/test_new_tools.py
@@ -21,7 +21,7 @@ async def test_find_best_worst():
     metric = "maximum"
     count = 3
 
-    files = list(directory.glob("*.xml"))
+    files = list(directory.glob("rteval-*/summary.xml"))
 
     print(f"Found {len(files)} XML files")
 
@@ -84,7 +84,7 @@ async def test_filter_results():
     directory = Path(__file__).parent.parent.parent
     kernel_pattern = "7.0"
 
-    files = list(directory.glob("*.xml"))
+    files = list(directory.glob("rteval-*/summary.xml"))
 
     print(f"Filtering for kernel pattern: {kernel_pattern}")
     print(f"Searching {len(files)} XML files\n")
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.