diff options
author | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2018-05-24 14:59:31 +0800 |
---|---|---|
committer | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2018-05-24 14:59:56 +0800 |
commit | 29736a1960234591aea1ab00b5211c20d3fd5117 (patch) | |
tree | 7fddb744fd6cd2d1018346b2b82bb0f3142a9ea1 /units/suspend | |
parent | 6e896036a1659b55a3b30c03c7db335b2c1c753b (diff) |
suspend.pxu: fix the iperf test
The iperf related tests are using the network script, some of them are missing the 'test' argument in the command and it will fail with: usage: network [-h] {test,info} ... network: error: invalid choice: 'wlp2s0' (choose from 'test', 'info') Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Diffstat (limited to 'units/suspend')
-rw-r--r-- | units/suspend/suspend.pxu | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/units/suspend/suspend.pxu b/units/suspend/suspend.pxu index c989f77..34d1ba4 100644 --- a/units/suspend/suspend.pxu +++ b/units/suspend/suspend.pxu @@ -61,7 +61,7 @@ requires: package.name == 'iperf' user: root environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS -command: network -i {interface} -t iperf +command: network test -i {interface} -t iperf _description: This test executes iperf connection performance/stability against device {__index__} ({interface}) before suspend. @@ -615,7 +615,7 @@ requires: package.name == 'iperf' user: root environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS -command: network -i {interface} -t iperf +command: network test -i {interface} -t iperf _description: This test executes iperf connection performance/stability against device {__index__} ({interface}) after suspend. @@ -631,7 +631,7 @@ requires: package.name == 'iperf' user: root environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS -command: network -i {interface} -t iperf +command: network test -i {interface} -t iperf _description: This test executes iperf connection performance/stability against device {__index__} ({interface}) after suspend. @@ -645,7 +645,7 @@ environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS command: INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm |cut -d ":" -f 13` [ -z $INTERFACE ] && exit 1 - network test -i $INTERFACE -t iperf + network test test -i $INTERFACE -t iperf _description: This test executes iperf connection performance/stability against the broadband device found on the system after suspend. |