[elbe-devel] [PATCH 5/6] Download generated JUnit XML file.
dion at linutronix.de
dion at linutronix.de
Thu Jul 18 14:02:45 CEST 2019
From: Olivier Dion <dion at linutronix.de>
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/db.py | 5 +++++
elbepack/elbeproject.py | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/elbepack/db.py b/elbepack/db.py
index f2333c87..7639c180 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -840,6 +840,11 @@ class ElbeDB(object):
"application/xml",
"xml License file")
+ if ep.junit:
+ _update_project_file(s, p.builddir, ep.junit,
+ "application/xml",
+ "JUnit compatabile XML file")
+
_update_project_file(s, p.builddir, "validation.txt",
"text/plain; charset=utf-8",
"Package list validation result")
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index d95dd4b1..4c1881b2 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -178,6 +178,11 @@ class ElbeProject (object):
self.arch = self.xml.text("project/arch", key="arch")
self.codename = self.xml.text("project/suite")
+ self.junit = None
+ test_suites = "target/project-finetuning/test-suites"
+ if self.xml.has(test_suites):
+ self.junit = self.xml.node(test_suites).et.attrib["dst"]
+
if not self.name:
self.name = self.xml.text("project/name")
--
2.11.0
More information about the elbe-devel
mailing list