Comment 3 for bug 1712301

Revision history for this message
Ray Chen (ray.chen) wrote :

The fix was only fixed dual graphic auto switch, OEM projects need a suspend_30_cycles_with_reboots/logs for dual graphic like

1. Add new “suspend 30 with reboot” template for dual graphics based on /stress/jobs.pxu #68~#83 to /suspend/suspend-graphics.pxu
unit: template
template-resource: graphics_card
template-filter: graphics_card.prime_gpu_offload == 'Off'
id: power-management/{index}_suspend_30_cycles_with_reboots_{product_slug}
plugin: shell
category_id: com.canonical.plainbox::stress
depends:
 power-management/rtc
 suspend/suspend_advanced
 graphics/{index}_auto_switch_card_{product_slug}
requires: ……
flags: noreturn autorestart
user: root
environ: PM_TEST_DRY_RUN
command: …..

2. Add new nested plan for dual graphics into /stress/test-plan.pxu for example
Id: com.canonical.certification::stress-suspend-30-cycles-with-reboots-automated-dual-graphics
unit: test plan
_name: Suspend stress tests (with reboots) for dual graphics
_description: Suspend stress tests (with reboots) for dual graphics
include:
power-management/1_suspend_30_cycles_with_reboots_.*
power-management/1_suspend-30-cycle-log-attach-with-reboots_.*
…...
power-management/2_suspend_30_cycles_with_reboots_.*
power-management/2_suspend-30-cycle-log-attach-with-reboots_.*
….