Merge ~sylvain-pineau/plainbox-provider-checkbox:fix-1766766 into plainbox-provider-checkbox:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 5fce85372efcf80660c035574f1d274799d4a533
Merged at revision: 6367b863cf103a44123b10c8f8e437ce76aa9221
Proposed branch: ~sylvain-pineau/plainbox-provider-checkbox:fix-1766766
Merge into: plainbox-provider-checkbox:master
Diff against target: 70 lines (+14/-4)
2 files modified
data/touch_tap_test.qml (+2/-2)
units/touchscreen/jobs.pxu (+12/-2)
Reviewer Review Type Date Requested Status
Jonathan Cave (community) Approve
Sylvain Pineau (community) Approve
Review via email: mp+344831@code.launchpad.net

Description of the change

Fixes linked bug.

Makes the call to manage_compiz_plugin only effective on 16.04
Fix qmlscene invocation to work on 16.04 and 18.04 where args have to be placed first.

Tested on 16.04 and 18.04

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

self-approved

review: Approve
Revision history for this message
Jonathan Cave (jocave) wrote :

+1 nice use of the jinja2 again

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/data/touch_tap_test.qml b/data/touch_tap_test.qml
2index c56c930..fc2c61d 100644
3--- a/data/touch_tap_test.qml
4+++ b/data/touch_tap_test.qml
5@@ -13,7 +13,7 @@ Rectangle {
6 color: "white"
7 font.pointSize: 15
8 property var timeout: 15
9- text: "<p>Touch the screen with "+Qt.application.arguments[2]+" fingers at the same time</p>" +
10+ text: "<p>Touch the screen with "+Qt.application.arguments[1]+" fingers at the same time</p>" +
11 "<p>Press ESC to cancel the test at any time.</p>" +
12 "<p><b>Test will exit automatically in " +
13 timeout + " seconds </b></p>"
14@@ -72,7 +72,7 @@ Rectangle {
15 enabled: true
16 anchors.fill: parent
17
18- minimumTouchPoints: Qt.application.arguments[2]
19+ minimumTouchPoints: Qt.application.arguments[1]
20 maximumTouchPoints: minimumTouchPoints
21
22 onReleased: {
23diff --git a/units/touchscreen/jobs.pxu b/units/touchscreen/jobs.pxu
24index 9db5677..98a2d4f 100644
25--- a/units/touchscreen/jobs.pxu
26+++ b/units/touchscreen/jobs.pxu
27@@ -124,6 +124,7 @@ _description:
28 Did the tap open the Dash?
29
30 plugin: user-interact-verify
31+template-engine: jinja2
32 category_id: com.canonical.plainbox::touchscreen
33 id: touchscreen/3-touch-tap
34 imports: from com.canonical.plainbox import manifest
35@@ -139,14 +140,19 @@ _description:
36 VERIFICATION:
37 Did you see the green circles around the three fingers?
38 command:
39+ {%- if __system_env__["XDG_CURRENT_DESKTOP"] == 'Unity' %}
40 manage_compiz_plugin unityshell disable
41- qmlscene -qt5 $PLAINBOX_PROVIDER_DATA/touch_tap_test.qml 3 2>&1 | grep -o PASS
42+ {% endif %}
43+ qmlscene -qt5 3 $PLAINBOX_PROVIDER_DATA/touch_tap_test.qml 2>&1 | grep -o PASS
44 EXIT=$?
45 sleep 5
46+ {%- if __system_env__["XDG_CURRENT_DESKTOP"] == 'Unity' %}
47 manage_compiz_plugin unityshell enable
48+ {% endif %}
49 exit $EXIT
50
51 plugin: user-interact-verify
52+template-engine: jinja2
53 category_id: com.canonical.plainbox::touchscreen
54 id: touchscreen/4-touch-tap
55 imports: from com.canonical.plainbox import manifest
56@@ -162,9 +168,13 @@ _description:
57 VERIFICATION:
58 Did you see the green circles around the four fingers?
59 command:
60+ {%- if __system_env__["XDG_CURRENT_DESKTOP"] == 'Unity' %}
61 manage_compiz_plugin unityshell disable
62- qmlscene -qt5 $PLAINBOX_PROVIDER_DATA/touch_tap_test.qml 4 2>&1 | grep -o PASS
63+ {% endif %}
64+ qmlscene -qt5 4 $PLAINBOX_PROVIDER_DATA/touch_tap_test.qml 2>&1 | grep -o PASS
65 EXIT=$?
66 sleep 5
67+ {%- if __system_env__["XDG_CURRENT_DESKTOP"] == 'Unity' %}
68 manage_compiz_plugin unityshell enable
69+ {% endif %}
70 exit $EXIT

Subscribers

People subscribed via source and target branches