[LTP] [PATCH] interface/if4-addr-change : NS_TIMES is not set value

sunlianwen sunlw.fnst@cn.fujitsu.com
Sun Feb 25 03:13:59 CET 2018


$NS_TIMES is not set value which lead  run if4-addr-chage to failure.
failure message as below:
--------------------------------------------------------------------------------------------
/opt/ltp/testcases/bin/if4-addr-change: line 24: / 20: syntax error: 
operand expected (error token is "/ 20")
--------------------------------------------------------------------------------------------
Signed-off-by:  Lianwen Sun  <sunlw.fnst@cn.fujitsu.com>
---
  testcases/network/stress/interface/if4-addr-change | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/network/stress/interface/if4-addr-change 
b/testcases/network/stress/interface/if4-addr-change
index a665b85ff..4eaabd70c 100644
--- a/testcases/network/stress/interface/if4-addr-change
+++ b/testcases/network/stress/interface/if4-addr-change
@@ -21,12 +21,12 @@ TST_TOTAL=1
  TCID=if4-addr-change
  TST_CLEANUP="do_cleanup"

+. test_net.sh
+
  CHECK_INTERVAL=${CHECK_INTERVAL:-$(($NS_TIMES / 20))}
  # Maximum host portion of the IPv4 address on the local host
  LHOST_IPV4_HOST_MAX="254"

-. test_net.sh
-
  do_cleanup()
  {
         tst_restore_ipaddr
-- 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180225/e8181919/attachment.html>


More information about the ltp mailing list