summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2015-03-02 11:42:36 +0800
committerPo-Hsu Lin <po-hsu.lin@canonical.com>2015-03-02 11:42:36 +0800
commitaa20601f7d5b898bbbbd848860379ecd3568271c (patch)
treeb00387e48021d2b378e4c475b34dc663e5ce0fa1 /jobs
parentcb42ba9fa1d034df9441cd6ba48bc22a2b33ef80 (diff)
touchpad/detected-as-mouse: changed into a non-interactive shell job by using touchpad_driver_info output only
Diffstat (limited to 'jobs')
-rw-r--r--jobs/touchpad.txt.in21
1 files changed, 8 insertions, 13 deletions
diff --git a/jobs/touchpad.txt.in b/jobs/touchpad.txt.in
index e7d2039..7ca22fc 100644
--- a/jobs/touchpad.txt.in
+++ b/jobs/touchpad.txt.in
@@ -190,23 +190,18 @@ _description:
VERIFICATION:
Did the tap open the Dash?
-plugin: user-interact
+plugin: shell
id: touchpad/detected-as-mouse
requires: dmi.product in ['Notebook','Laptop','Portable']
-estimated_duration: 30.0
+estimated_duration: 1.2
command:
- xinput list --name-only | grep "PS/2 Generic Mouse"
- if [ $? ]; then
- zenity --info --text "Oops, your touchpad seems to be detected as a mouse"
- exit 1
+ info=`touchpad_driver_info`
+ if [ $? -eq 0 ]; then
+ echo "touchpad detected with driver: $info"
else
- touchpad_driver_info
+ echo "$info"
+ exit 1
fi
_description:
- PURPOSE:
- This test will test if your touchpad was detected as a mouse
- STEPS:
- 1. Please disconnect any external mouse / pointing device and click on Test
- VERIFICATION:
- The verification of this test is automated.
+ This test will check if your touchpad was detected as a mouse.