@@ -1151,10 +1151,11 @@ id: suspend/cycle_resolutions_after_suspend
11511151estimated_duration: 120.0
11521152requires: package.name == 'xorg'
11531153depends: suspend/suspend_advanced_auto
1154+ environ: XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
11541155command:
1155- if [[ $XDG_SESSION_TYPE == "wayland" ]]
1156+ if [[ $XDG_CURRENT_DESKTOP == *"GNOME"* ]]
11561157 then
1157- gnome_randr_cycle .py --keyword=after_suspend --screenshot-dir ="$PLAINBOX_SESSION_SHARE"
1158+ randr_cycle .py -c resolution --screenshot_dir ="$PLAINBOX_SESSION_SHARE"
11581159 else
11591160 xrandr_cycle.py --keyword=after_suspend --screenshot-dir="$PLAINBOX_SESSION_SHARE"
11601161 fi
@@ -1175,11 +1176,12 @@ id: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}
11751176template-id: suspend/index_cycle_resolutions_after_suspend_product_slug
11761177requires: package.name == 'xorg'
11771178depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
1179+ environ: XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
11781180estimated_duration: 120.0
11791181command:
1180- if [[ $XDG_SESSION_TYPE == "wayland" ]]
1182+ if [[ $XDG_CURRENT_DESKTOP == *"GNOME"* ]]
11811183 then
1182- gnome_randr_cycle .py --keyword= {index}_after_suspend --screenshot-dir ="$PLAINBOX_SESSION_SHARE"
1184+ randr_cycle .py -c resolution --prefix {index} --screenshot_dir ="$PLAINBOX_SESSION_SHARE"
11831185 else
11841186 xrandr_cycle.py --keyword={index}_after_suspend --screenshot-dir="$PLAINBOX_SESSION_SHARE"
11851187 fi
@@ -1197,13 +1199,14 @@ id: suspend/cycle_resolutions_after_suspend_auto
11971199estimated_duration: 1.2
11981200requires: package.name == 'xorg'
11991201depends: suspend/suspend_advanced_auto
1202+ environ: XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
12001203_purpose:
12011204 This test will check to make sure supported video modes work after a suspend and resume.
12021205 This is done automatically by taking screenshots and uploading them as an attachment.
12031206command:
1204- if [[ $XDG_SESSION_TYPE == "wayland" ]]
1207+ if [[ $XDG_CURRENT_DESKTOP == *"GNOME"* ]]
12051208 then
1206- gnome_randr_cycle .py --keyword=after_suspend --screenshot-dir ="$PLAINBOX_SESSION_SHARE"
1209+ randr_cycle .py -c resolution --screenshot_dir ="$PLAINBOX_SESSION_SHARE"
12071210 else
12081211 xrandr_cycle.py --keyword=after_suspend --screenshot-dir="$PLAINBOX_SESSION_SHARE"
12091212 fi
@@ -1213,7 +1216,9 @@ plugin: attachment
12131216category_id: com.canonical.plainbox::suspend
12141217id: suspend/xrandr_screens_after_suspend.tar.gz
12151218depends: suspend/cycle_resolutions_after_suspend
1216- command: [ -f "$PLAINBOX_SESSION_SHARE"/xrandr_screens_after_suspend.tgz ] && cat "$PLAINBOX_SESSION_SHARE"/xrandr_screens_after_suspend.tgz
1219+ command:
1220+ # shellcheck disable=SC1091,SC1083
1221+ [ -f "$PLAINBOX_SESSION_SHARE"/{index}_xrandr_screens_after_suspend.tgz ] && cat "$PLAINBOX_SESSION_SHARE"/{index}_xrandr_screens_after_suspend.tgz
12171222_purpose: This attaches screenshots from the suspend/cycle_resolutions_after_suspend test to the results submission.
12181223_summary: Attach screenshots from the suspend/cycle_resolutions_after_suspend test to results.
12191224
@@ -1225,7 +1230,9 @@ category_id: com.canonical.plainbox::suspend
12251230id: suspend/{index}_xrandr_screens_after_suspend.tar.gz
12261231template-id: suspend/index_xrandr_screens_after_suspend.tar.gz
12271232depends: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}
1228- command: [ -f "$PLAINBOX_SESSION_SHARE"/{index}_xrandr_screens_after_suspend.tgz ] && cat "$PLAINBOX_SESSION_SHARE"/{index}_xrandr_screens_after_suspend.tgz
1233+ command:
1234+ # shellcheck disable=SC1091,SC1083
1235+ [ -f "$PLAINBOX_SESSION_SHARE"/{index}_xrandr_screens_after_suspend.tgz ] && cat "$PLAINBOX_SESSION_SHARE"/{index}_xrandr_screens_after_suspend.tgz
12291236_purpose: This attaches screenshots from the suspend/cycle_resolutions_after_suspend test to the results submission.
12301237_summary: Attach screenshots from suspend/cycle_resolutions_after_suspend test to the results.
12311238
0 commit comments