diff options
| author | cgregan@canonical.com <> | 2014-06-10 16:16:03 -0400 |
|---|---|---|
| committer | cgregan@canonical.com <> | 2014-06-10 16:16:03 -0400 |
| commit | d9ca67a4f5e6160e1839e832884a031a271f276f (patch) | |
| tree | 75c63a5a46f6b44639835698a482d4b461c71434 | |
| parent | bbfe153fbd37345f71924e44c3e6979855e046e1 (diff) | |
updated based on feedback
| -rw-r--r-- | jobs/suspend.txt.in | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/jobs/suspend.txt.in b/jobs/suspend.txt.in index a9b2902..9bf766a 100644 --- a/jobs/suspend.txt.in +++ b/jobs/suspend.txt.in @@ -687,16 +687,30 @@ _description: This is an automated test to gather some info on the current state of your network devices. If no devices are found, the test will exit with an error. plugin: shell - id: suspend/iperf_after_suspend_mobilebroadband_auto - depends: ethernet/detect - estimated_duration: 20.0 - user: root - command: network -i -t iperf - _description: - This test executes iperf connection performance/stability against all the ethernet devices found on the system before suspend. - EOF +id: suspend/iperf_after_suspend_mobilebroadband_gsm_auto +depends: ethernet/detect +estimated_duration: 20.0 +user: root +environ: GSM_CONN_NAME GSM_APN GSM_USERNAME GSM_PASSWORD +command: + INTERFACE=`nmcli -t -f GENERAL -m tabular dev list |grep gsm |cut -d ":" -f 13` + [ -z $INTERFACE ] && exit 1 + network -i $INTERFACE -t iperf _description: - This is an automated test to gather some info on the current state of your network devices. If no devices are found, the test will exit with an error. + This test executes iperf connection performance/stability against the broadband device found on the system before suspend. + +plugin: shell +id: suspend/iperf_after_suspend_mobilebroadband_cdma_auto +depends: ethernet/detect +estimated_duration: 20.0 +user: root +environ: CDMA_CONN_NAME CDMA_USERNAME CDMA_PASSWORD +command: + INTERFACE=`nmcli -t -f GENERAL -m tabular dev list |grep cdma |cut -d ":" -f 13` + [ -z $INTERFACE ] && exit 1 + network -i $INTERFACE -t iperf +_description: + This test executes iperf connection performance/stability against the broadband device found on the system before suspend. plugin: user-interact-verify id: suspend/wireless_connection_after_suspend_wpa_bg_manual |
