Commit 5cbbd5a3 authored by Steffen Müthing's avatar Steffen Müthing

[!36] Don't use subdirectories for junit reports

Merge branch 'feature/flat-junit-report-directory' into 'master'

ref:docker/ci The wildcard support in the runner is not clever enough for
advanced patterns like "**/*.xml".

See merge request [!36]

  [!36]: gitlab.dune-project.org/docker/ci/merge_requests/36
parents c4d260e5 93c3d8ff
......@@ -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