[elbe-devel] [PATCH 5/6] Download generated JUnit XML file.
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 7 11:12:53 CEST 2019
On Thu, Jul 18, 2019 at 02:02:45PM +0200, dion at linutronix.de wrote:
> From: Olivier Dion <dion at linutronix.de>
please add a bit of log text.
"register the unit xml file with the database"
>
> 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:
with the hardcoded filename, you can just check for the existence
of the file.
but... its possible to register the file with the database from the
finetuning rule.
so please do that there... this function is already cluttered enough ;)
> + _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
>
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
More information about the elbe-devel
mailing list