bugfix: ipv6 testcase ping6 command wrong 67/21967/1
authorrexlee8776 <limingjiang@huawei.com>
Tue, 20 Sep 2016 23:55:53 +0000 (23:55 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Tue, 20 Sep 2016 23:55:53 +0000 (23:55 +0000)
JIRA: YARDSTICK-355

Change-Id: Ib05318d03aaba1c86dd386f6d375d8d2cffa11ef
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
yardstick/benchmark/scenarios/networking/ping6.py
yardstick/benchmark/scenarios/networking/ping6_benchmark.bash

index dc896b2..817f3e2 100644 (file)
@@ -86,7 +86,7 @@ class Ping6(base.Scenario):  # pragma: no cover
         options = self.scenario_cfg['options']
         self.ping_options = "-s %s" % \
             options.get("packetsize", '56') + \
-            "-c %s" % \
+            " -c %s" % \
             options.get("ping_count", '5')
         host_str = options.get("host", 'host1')
         self.host_list = host_str.split(',')
@@ -133,7 +133,7 @@ class Ping6(base.Scenario):  # pragma: no cover
             options = self.scenario_cfg['options']
             self.ping_options = "-s %s" % \
                 options.get("packetsize", '56') + \
-                "-c %s" % \
+                " -c %s" % \
                 options.get("ping_count", '5')
             host_str = options.get("host", 'host1')
             self.host_list = host_str.split(',')
index 9a08b09..bf730eb 100644 (file)
@@ -11,7 +11,7 @@
 
 # Run a single ping6 command towards a ipv6 router
 set -e
-ping6_options=$1
+ping6_options=$*
 source /opt/admin-openrc.sh
 chmod 600 vRouterKey
 # TODO find host