summaryrefslogtreecommitdiff
path: root/units/graphics
diff options
Diffstat (limited to 'units/graphics')
-rw-r--r--units/graphics/jobs.pxu7
-rw-r--r--units/graphics/packaging.pxu8
2 files changed, 14 insertions, 1 deletions
diff --git a/units/graphics/jobs.pxu b/units/graphics/jobs.pxu
index 185193b..4dde304 100644
--- a/units/graphics/jobs.pxu
+++ b/units/graphics/jobs.pxu
@@ -230,7 +230,12 @@ depends: graphics/VESA_drivers_not_in_use
command:
# shellcheck disable=SC1091
source graphics_env.sh {driver} {index}
- xrandr_cycle.py --screenshot-dir "$PLAINBOX_SESSION_SHARE"
+ if [[ $XDG_SESSION_TYPE == "wayland" ]]
+ then
+ gnome_randr_cycle.py --screenshot-dir="$PLAINBOX_SESSION_SHARE"
+ else
+ xrandr_cycle.py --screenshot-dir="$PLAINBOX_SESSION_SHARE"
+ fi
estimated_duration: 250.000
_summary: Test resolution cycling for {vendor} {product}
_description:
diff --git a/units/graphics/packaging.pxu b/units/graphics/packaging.pxu
new file mode 100644
index 0000000..a81bc13
--- /dev/null
+++ b/units/graphics/packaging.pxu
@@ -0,0 +1,8 @@
+unit: packaging meta-data
+os-id: ubuntu
+os-version-id: 22.04
+Depends: gnome-randr
+
+unit: packaging meta-data
+os-id: debian
+Depends: gnome-screenshot