Commit 93c3d8ff authored by Steffen Müthing's avatar Steffen Müthing

Don't use subdirectories for junit reports

The wildcard support in the runner is not clever enough for advanced patterns
like "**/*.xml".
parent c4d260e5
......@@ -52,9 +52,10 @@ class CTestParser:
self.inputpath = self.findCTestOutput()
if junitpath is None:
buildroot = Path(os.environ["CI_PROJECT_DIR"])
junitdir = buildroot / "junit" / os.environ["CI_PROJECT_PATH_SLUG"]
junitdir = buildroot / "junit"
junitdir.mkdir(parents=True,exist_ok=True)
self.junitpath = junitdir / "cmake.xml"
junitfile = "{}-cmake.xml".format(os.environ["CI_PROJECT_PATH_SLUG"])
self.junitpath = junitdir / junitfile
else:
self.junitpath = Path(junitpath)
self.tests = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment