diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/power-management/jobs.pxu b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/power-management/jobs.pxu index e514de4fe7..8d0fb9674a 100644 --- a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/power-management/jobs.pxu +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/power-management/jobs.pxu @@ -16,6 +16,8 @@ _description: STRESS_BOOT_WAIT_DELAY=60 unit: job plugin: shell +imports: from com.canonical.plainbox import manifest +requires: manifest.has_pdu == 'True' command: sleep 5 [[ -z "$STRESS_BOOT_WAKEUP_DELAY" ]] && STRESS_BOOT_WAKEUP_DELAY=60 @@ -32,5 +34,7 @@ _summary: Post cold reboot service check _description: Check there are no failed services after the cold reboot unit: job plugin: shell +imports: from com.canonical.plainbox import manifest +requires: manifest.has_pdu == 'True' command: reboot_check_test.sh -s estimated_duration: 1.0 diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/power-management/manifest.pxu b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/power-management/manifest.pxu new file mode 100644 index 0000000000..66e745c07c --- /dev/null +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/power-management/manifest.pxu @@ -0,0 +1,4 @@ +unit: manifest entry +id: has_pdu +_name: Does network PDU available in test environment? +value-type: bool \ No newline at end of file diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/stress/boot.pxu b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/stress/boot.pxu index e6c3020dd9..c671d1e0e7 100644 --- a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/stress/boot.pxu +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/stress/boot.pxu @@ -5,6 +5,8 @@ _description: This creates baseline data sets which be considered the master copies and all further tests will be compared against these. unit: job plugin: shell +imports: from com.canonical.plainbox import manifest +requires: manifest.has_pdu == 'True' command: reboot_check_test.sh -d "$PLAINBOX_SESSION_SHARE/before_reboot" environ: LD_LIBRARY_PATH diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/test-plan-ce-oem.pxu b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/test-plan-ce-oem.pxu index 5fcdb73409..89f64fbb7f 100644 --- a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/test-plan-ce-oem.pxu +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/test-plan-ce-oem.pxu @@ -89,6 +89,7 @@ nested_part: before-suspend-ce-oem-spi-automated ce-oem-gadget-automated ce-oem-mir-automated + ce-oem-power-automated-by-pdu certification_status_overrides: apply blocker to .*