diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2021-03-30 14:25:25 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2021-04-07 10:31:24 +0100 |
commit | 909ab105a9b443e35ed3ab645dd20434e010519b (patch) | |
tree | 15de0de382a16b30ad67c83d88db390f24616f95 /units/miscellanea | |
parent | a83b0066122064d17b9936068ae683e56f297d16 (diff) |
Add: check that ubuntu-drivers can be run
Check this command is runnable and if a package list is produced use an attachment job to include it.
Diffstat (limited to 'units/miscellanea')
-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 |