diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-13 11:26:52 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-13 11:26:52 +0200 |
commit | 258f3177860c34a2b772c62b99bfc88ce1c755f7 (patch) | |
tree | 586e5cc73e550aafd1bc165be9eac2862577b610 /units/suspend | |
parent | 4a58715d7d6b165d4e3b5a4169570a5b2e680429 (diff) |
bin:graphics_env -> graphics_env.sh
Diffstat (limited to 'units/suspend')
-rw-r--r-- | units/suspend/suspend-graphics.pxu | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu index 056be9e..d55ad69 100644 --- a/units/suspend/suspend-graphics.pxu +++ b/units/suspend/suspend-graphics.pxu @@ -8,7 +8,7 @@ after: graphics/{index}_auto_switch_card_{product_slug} estimated_duration: 1.2 _description: Record the current resolution before suspending. command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} xrandr -q | grep '*'| awk '{{print $1}}' > $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt unit: template @@ -48,7 +48,7 @@ depends: {%- endif %} _description: Test to see that we have the same resolution after resuming as before. command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} xrandr -q | grep '*'| awk '{print $1}' | diff $PLAINBOX_SESSION_SHARE/{{ index }}_resolution_before_suspend.txt - unit: template @@ -89,7 +89,7 @@ depends: {%- endif %} estimated_duration: 120.0 command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} xrandr_cycle --keyword={{ index }}_after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE _description: PURPOSE: @@ -124,7 +124,7 @@ depends: {%- endif %} requires: package.name == 'nux-tools' command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} ! /usr/lib/nux/unity_support_test -p 2>&1 | ansi_parser.py | grep -e ":\(\s\+\)no$" -ie "error" estimated_duration: 0.130 _description: Check that {{ product }} hardware is able to run a desktop session (OpenGL) @@ -144,7 +144,7 @@ depends: {%- endif %} requires: executable.name == 'glxgears' command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} glxgears true _summary: Test that glxgears works for {{ vendor }} {{ product }} after suspend @@ -174,7 +174,7 @@ requires: package.name == 'xorg' package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0' command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} gst_pipeline_test -t 2 'videotestsrc ! videoconvert ! autovideosink' || gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! autovideosink' _summary: Test that video can be displayed after suspend with {{ vendor }} {{ product }} _description: @@ -199,7 +199,7 @@ depends: suspend/suspend_advanced {%- endif %} command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} graphics_driver.py estimated_duration: 0.500 _description: Parses Xorg.0.Log and discovers the running X driver and version after suspend for the {{ vendor }} {{ product }} graphics card @@ -277,7 +277,7 @@ depends: suspend/suspend_advanced {%- endif %} command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} rotation_test estimated_duration: 20.000 _summary: Test rotation for {{ vendor }} {{ product }} after suspend |