summaryrefslogtreecommitdiff
path: root/units/touchpad
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2020-07-19 16:55:47 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2020-07-19 16:55:47 +0200
commit2909dc3ec5fe877ffa25933ac936f4a26b9a2c2b (patch)
treee037f6bba1f9d2c5a7a4d8478c2845f3e3c91313 /units/touchpad
parent2b1956220674c34911ce718e065bba8370c7a4ef (diff)
units: Fix all jobs commands shellcheck errors
Diffstat (limited to 'units/touchpad')
-rw-r--r--units/touchpad/jobs.pxu7
1 files changed, 3 insertions, 4 deletions
diff --git a/units/touchpad/jobs.pxu b/units/touchpad/jobs.pxu
index 5e5a4f2..2fcdbc3 100644
--- a/units/touchpad/jobs.pxu
+++ b/units/touchpad/jobs.pxu
@@ -189,8 +189,7 @@ id: touchpad/detected-as-mouse
requires: dmi.product in ['Notebook','Laptop','Portable','Convertible']
estimated_duration: 1.2
command:
- info=`touchpad_driver_info.py`
- if [ $? -eq 0 ]; then
+ if info=$(touchpad_driver_info.py); then
echo -e "touchpad detected with:\n$info"
else
echo "$info"
@@ -207,7 +206,7 @@ category_id: com.canonical.plainbox::touchpad
id: touchpad/continuous-move
requires: dmi.product in ['Notebook','Laptop','Portable','Convertible']
estimated_duration: 12
-command: qmlscene -qt5 --fullscreen $PLAINBOX_PROVIDER_DATA/touch_continuous_move_test.qml 2>&1 | grep -o PASS
+command: qmlscene -qt5 --fullscreen "$PLAINBOX_PROVIDER_DATA"/touch_continuous_move_test.qml 2>&1 | grep -o PASS
_purpose:
Touchpad continuous move verification
_steps:
@@ -222,7 +221,7 @@ _siblings:
id: touchpad/palm-rejection
plugin: user-interact
category_id: com.canonical.plainbox::touchpad
-command: qmlscene -qt5 --fullscreen $PLAINBOX_PROVIDER_DATA/palm_rejection.qml 2>&1 | grep -o PASS
+command: qmlscene -qt5 --fullscreen "$PLAINBOX_PROVIDER_DATA"/palm_rejection.qml 2>&1 | grep -o PASS
_purpose:
This test checks if touchpad ignores palm touches
_steps: