diff options
author | PMR <pmr@pmr-lander> | 2021-04-07 09:35:52 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2021-04-07 09:35:52 +0000 |
commit | d6368d8712e8106902c7f9a9a8bf8cb0eecaf596 (patch) | |
tree | 1a0e113ae134288062beb8e7aca0753c4732c01a | |
parent | 031a9ba2aabf84bd6b76f7538d3221a90be60285 (diff) | |
parent | 909ab105a9b443e35ed3ab645dd20434e010519b (diff) |
Merge #400404 from ~jocave/plainbox-provider-checkbox:add-ubuntu-drivers-check
-rw-r--r-- | units/miscellanea/jobs.pxu | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/units/miscellanea/jobs.pxu b/units/miscellanea/jobs.pxu index 4772507..eb72d08 100644 --- a/units/miscellanea/jobs.pxu +++ b/units/miscellanea/jobs.pxu @@ -495,3 +495,22 @@ _description: privileges _summary: Verify BMC user called 'maas' was successfully created + +id: miscellanea/ubuntu_drivers_list_oem_check +category_id: com.canonical.plainbox::miscellanea +_summary: Test the command to list-oem packages runs successfully +flags: simple +requires: executable.name == 'ubuntu-drivers' +command: + ubuntu-drivers list-oem --package-list="$PLAINBOX_SESSION_SHARE/ubuntu_drivers_list_oem_check" + +id: miscellanea/ubuntu_drivers_list_oem_check_attachment +category_id: com.canonical.plainbox::miscellanea +_summary: Attach the ubuntu-drivers output file if it exists +plugin: attachment +depends: miscellanea/ubuntu_drivers_list_oem_check +command: + if test -f "$PLAINBOX_SESSION_SHARE/ubuntu_drivers_list_oem_check"; then + cat "$PLAINBOX_SESSION_SHARE/ubuntu_drivers_list_oem_check" + fi + true |