diff options
| author | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2015-03-02 11:42:36 +0800 |
|---|---|---|
| committer | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2015-03-02 11:42:36 +0800 |
| commit | aa20601f7d5b898bbbbd848860379ecd3568271c (patch) | |
| tree | b00387e48021d2b378e4c475b34dc663e5ce0fa1 /jobs | |
| parent | cb42ba9fa1d034df9441cd6ba48bc22a2b33ef80 (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.in | 21 |
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. |
