From 0cc5a67f41156c22b90e8ce88bacf24acc8255ba Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Thu, 22 Apr 2021 15:56:47 +0100 Subject: Add: jobs to dump acpi tables and attach Two new jobs that use fwts (which should be available on all systems targetted by checkbox) to dump the acpi tables and that attach the output. The attachment is gzipped to save reduce size of the submission. LP: #1913714 --- units/firmware/jobs.pxu | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/units/firmware/jobs.pxu b/units/firmware/jobs.pxu index 74d13ef..eb8397c 100644 --- a/units/firmware/jobs.pxu +++ b/units/firmware/jobs.pxu @@ -88,6 +88,24 @@ command: _description: Attaches the FWTS Server Cert results log to the submission _summary: Attach FWTS Server Cert test log to submission +id: firmware/fwts_dump +category_id: com.canonical.plainbox::firmware +_summary: Run the FTWS dump command +plugin: shell +user: root +requires: executable.name == 'fwts' +command: + pushd "$PLAINBOX_SESSION_SHARE" > /dev/null || exit + fwts -d + +id: firmware/fwts_dump_acpi_attachment_gz +category_id: com.canonical.plainbox::firmware +_summary: Collect the ACPI tables dump from FWTS +plugin: attachment +depends: firmware/fwts_dump +command: + [ -f "$PLAINBOX_SESSION_SHARE/acpidump.log" ] && gzip -c "$PLAINBOX_SESSION_SHARE/acpidump.log" + id: firmware/tcglog-required-algs-sha256 category_id: com.canonical.plainbox::firmware -- cgit v1.2.3