[PATCH 2/6] rteval: Fix xmlout unit test XSL file path
John Kacur <[email protected]> Fri, 17 Apr 2026 15:51:09 -0400
| Newsgroups | org.kernel.vger.linux-rt-users |
|---|---|
| Message-ID | <[email protected]> |
The xmlout unit test was failing because it was looking for rteval_text.xsl in the current directory, but the file is located at rteval/rteval_text.xsl. Update the test to use the correct path relative to the project root, which is where the test is run from. This fixes the test failure: Before: 2 successful tests, 2 failed After: 3 successful tests, 1 failed (only DMI test which needs root) Signed-off-by: John Kacur <[email protected]> --- rteval/xmlout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rteval/xmlout.py b/rteval/xmlout.py index 710d50a1fc0f..5ff426643c3a 100644 --- a/rteval/xmlout.py +++ b/rteval/xmlout.py @@ -283,7 +283,7 @@ def unit_test(rootdir): print("------------- XML OUTPUT ----------------------------") x.Write("-") print("------------- XSLT PARSED OUTPUT --------------------") - x.Write("-", "rteval_text.xsl") + x.Write("-", "rteval/rteval_text.xsl") print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~") x.Write("/tmp/xmlout-test.xml") del x @@ -294,7 +294,7 @@ def unit_test(rootdir): print("------------- LOADED XML DATA --------------------------------") x.Write("-") print("------------- XSLT PARSED OUTPUT FROM LOADED XML--------------") - x.Write("-", "rteval_text.xsl") + x.Write("-", "rteval/rteval_text.xsl") x.close() ## Test new data parser ... it eats most data types -- 2.53.0