Merge ~pieq/plainbox-provider-tpm2:remove-tpm2-tools-from-automated-test-plan into plainbox-provider-tpm2:master

Proposed by Pierre Equoy
Status: Merged
Approved by: Pierre Equoy
Approved revision: 9f5d4898a6901d0c7fa34fbfb0fdbc5fa262f61e
Merged at revision: d656c17140220847a019d72f238c87f1b56f3617
Proposed branch: ~pieq/plainbox-provider-tpm2:remove-tpm2-tools-from-automated-test-plan
Merge into: plainbox-provider-tpm2:master
Diff against target: 29 lines (+12/-1)
1 file modified
units/test-plan.pxu (+12/-1)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+430268@code.launchpad.net

Description of the change

Tested using checkbox-cli list-boostrapped before/after applying the patch.

See here with Client Cert Desktop 22.04 and Ubuntu Core 22 ODM test plans:

https://pastebin.ubuntu.com/p/bQNrQBb5HX/

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I've also considered this approach but problem is that tpm-cert-automated is also used by focal test plans:

plainbox-provider-certification-client/units$ grep -r tpm-cert-automated *20*
client-cert-desktop-20-04.pxu: tpm-cert-automated
client-cert-iot-ubuntucore-20.pxu: tpm-cert-automated
client-cert-odm-desktop-20-04.pxu: tpm-cert-automated
client-cert-odm-server-20-04.pxu: tpm-cert-automated
client-cert-odm-ubuntucore-20.pxu: tpm-cert-automated

Your commit is good, but I'd create another test plan to be used as a nested part in 20* test plans.

Something like:

 unit: test plan
 id: tpm-cert-focal-automated
 _name: TPM tests (Automated)
 _description:
   TPM tests that should be run as part of Certification.
   Include the tpm2-tools 4.1.1 integration tests for 20.04/UC20.
 include:
     tpm2/fwts-event-log-dump
 nested_part:
     tpm2.0_4.1.1-automated
     clevis-automated

review: Needs Fixing
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

+1, thanks

review: Approve
Revision history for this message
Pierre Equoy (pieq) wrote :

Thanks for catching this up, Sylvain.

Here is the updated version, tested after pointing the 20.04/UC20 test plans to `tpm-cert-focal-automated`.

Output after applying the patch, for all the test plans you mentioned + the 22.04/UC22 ones:

https://pastebin.ubuntu.com/p/BJ2ZKtCvbj/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/test-plan.pxu b/units/test-plan.pxu
2index b2e7f83..521cad5 100644
3--- a/units/test-plan.pxu
4+++ b/units/test-plan.pxu
5@@ -114,6 +114,18 @@ _description:
6 include:
7
8 unit: test plan
9+id: tpm-cert-focal-automated
10+_name: TPM tests for Ubuntu 20.04 Focal Fossa (Automated)
11+_description:
12+ TPM tests that should be run as part of Certification.
13+ Include the tpm2-tools 4.1.1 integration tests for 20.04/UC20.
14+include:
15+ tpm2/fwts-event-log-dump
16+nested_part:
17+ tpm2.0_4.1.1-automated
18+ clevis-automated
19+
20+unit: test plan
21 id: tpm-cert-automated
22 _name: TPM tests (Automated)
23 _description:
24@@ -122,5 +134,4 @@ _description:
25 include:
26 tpm2/fwts-event-log-dump
27 nested_part:
28- tpm2.0_4.1.1-automated
29 clevis-automated

Subscribers

People subscribed via source and target branches

to all changes: