summaryrefslogtreecommitdiff
path: root/units
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2021-12-03 11:32:42 +0100
committerSylvain Pineau <sylvain.pineau@canonical.com>2021-12-03 11:32:42 +0100
commit698cc8e2289c33b57630231f450615007af3298a (patch)
treeaeb0c9e8eec7eb0085e7ba98e312c5866e34ef95 /units
parentd89ebfdd5bb5c871530d7b04aea772583d41abf1 (diff)
Fix: Use a safer method to template touchscreen jobs (dict.get()) - bis
Diffstat (limited to 'units')
-rw-r--r--units/touchscreen/jobs.pxu4
1 files changed, 2 insertions, 2 deletions
diff --git a/units/touchscreen/jobs.pxu b/units/touchscreen/jobs.pxu
index d274c63..deb16d4 100644
--- a/units/touchscreen/jobs.pxu
+++ b/units/touchscreen/jobs.pxu
@@ -178,7 +178,7 @@ _description:
Validate that 4-touch tap is operating as expected
STEPS:
1. Commence the test
- {%- if 'Unity' in __system_env__["XDG_CURRENT_DESKTOP"] %}
+ {%- if 'Unity' in __system_env__.get("XDG_CURRENT_DESKTOP", "") %}
2. Tap the screen within the test area with 4 fingers simultaneously.
3. Once 4 fingers are on the screen you should see the indicator they are recognized.
VERIFICATION:
@@ -188,7 +188,7 @@ _description:
3. If the tap is not detected the test will time out after 20 seconds.
{% endif %}
command:
- {%- if 'Unity' in __system_env__["XDG_CURRENT_DESKTOP"] %}
+ {%- if 'Unity' in __system_env__.get("XDG_CURRENT_DESKTOP", "") %}
manage_compiz_plugin.py unityshell disable
qmlscene -qt5 4 "$PLAINBOX_PROVIDER_DATA"/touch_tap_test.qml 2>&1 | grep -o PASS
EXIT=$?