Fix order of arguments in ping.py 61/861/1
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Thu, 18 Jun 2015 10:10:02 +0000 (12:10 +0200)
committerJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Thu, 18 Jun 2015 10:10:02 +0000 (12:10 +0200)
The bash script expects 'destination' followed by 'option'

Change-Id: If1c42f867caaa05c794cc81acc34fdce1774eb7c
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
yardstick/benchmark/scenarios/networking/ping.py

index 1b87c74..ddf6864 100644 (file)
@@ -50,7 +50,7 @@ class Ping(base.Scenario):
         LOG.debug("ping '%s' '%s'", options, destination)
 
         exit_status, stdout, stderr = self.connection.execute(
-            "/bin/sh -s {0} {1}".format(options, destination),
+            "/bin/sh -s {0} {1}".format(destination, options),
             stdin=open(self.target_script, "r"))
 
         if exit_status != 0: