diff options
| -rw-r--r-- | units/suspend/manifest.pxu | 4 | ||||
| -rw-r--r-- | units/suspend/suspend.pxu | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/units/suspend/manifest.pxu b/units/suspend/manifest.pxu new file mode 100644 index 0000000..fe415be --- /dev/null +++ b/units/suspend/manifest.pxu @@ -0,0 +1,4 @@ +unit: manifest entry +id: has_usb_storage +_name: USB Storage Device Connected +value-type: bool diff --git a/units/suspend/suspend.pxu b/units/suspend/suspend.pxu index 034f97b..7874819 100644 --- a/units/suspend/suspend.pxu +++ b/units/suspend/suspend.pxu @@ -1645,6 +1645,8 @@ _description: This is an automated version of usb/storage-automated and assumes that the server has usb storage devices plugged in prior to checkbox execution. It is intended for servers and SRU automated testing. +requires: + manifest.has_usb_storage == 'True' plugin: shell category_id: com.canonical.plainbox::suspend |
