From c366b1a21d0844abd5c744c8da3c03fe34ca14d6 Mon Sep 17 00:00:00 2001 From: Le Van Quach <levan.quach@kalpa.it> Date: Tue, 6 Sep 2022 10:06:50 +0200 Subject: [PATCH] recipes-extended: add checkbox configuration file to write reports in a specific folder This allows checkbox write reports into a /run/mount/appdata folder Signed-off-by: Le Van Quach <levan.quach@kalpa.it> --- .../python3/python3-checkbox-ng/checkbox.conf | 41 +++++++++++++++++++ .../python3/python3-checkbox-ng_1.18.1.bb | 2 + 2 files changed, 43 insertions(+) create mode 100644 meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng/checkbox.conf diff --git a/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng/checkbox.conf b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng/checkbox.conf new file mode 100644 index 00000000..0df268c2 --- /dev/null +++ b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng/checkbox.conf @@ -0,0 +1,41 @@ +#!/usr/bin/env checkbox-cli + +[launcher] +launcher_version = 1 +stock_reports = text, certification + +[exporter:html] +unit = com.canonical.plainbox::html + +[exporter:tar] +unit = com.canonical.plainbox::tar + +[exporter:junit] +unit = com.canonical.plainbox::junit + +[transport:html_transport] +type = file +path = /run/mount/appdata/report.html + +[transport:tar_transport] +type = file +path = /run/mount/appdata/report.tar.xz + +[transport:junit_transport] +type = file +path = /run/mount/appdata/report.junit + +[report:html_report] +transport = html_transport +exporter = html +forced = yes + +[report:tar_report] +transport = tar_transport +exporter = tar +forced = yes + +[report:junit_report] +transport = junit_transport +exporter = junit +forced = yes diff --git a/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb index 2efed178..25528ef7 100644 --- a/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb +++ b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb @@ -12,6 +12,7 @@ SRC_URI += "file://0001-Adjust-for-deprecated-jinja2.Markup-alias.patch \ file://checkbox-ng.service \ file://0001-Modify-restart-logic-in-order-to-run-checkbox-servic.patch \ file://0001-Adjust-autoescape-for-Jinja2.patch \ + file://checkbox.conf \ " inherit pypi setuptools3 @@ -40,6 +41,7 @@ FILES:checkbox-ng-service = "${systemd_unitdir}/system/checkbox-ng-service.conf" do_install:append() { install -D -m 0644 ${WORKDIR}/checkbox-ng.service -t ${D}${systemd_unitdir}/system/ + install -D -m 0644 ${WORKDIR}/checkbox.conf -t ${D}/etc/xdg/ } RDEPENDS:checkbox-ng-service += " \ -- GitLab