From 29736a1960234591aea1ab00b5211c20d3fd5117 Mon Sep 17 00:00:00 2001 From: Po-Hsu Lin Date: Thu, 24 May 2018 14:59:31 +0800 Subject: 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 --- units/suspend/suspend.pxu | 8 ++++---- 1 file 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. -- cgit v1.2.3