summaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-06-16 08:57:07 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-06-16 08:57:07 +0000
commitf68ce570fd0eefb17bfc9e1e75c57b24050db89e (patch)
treec9d92089e7bb0a839fa8c6119287a765559fd084 /yardstick
parent585a2483e9fb021d853b0946f185d066335adea4 (diff)
parent17e94ff1e86c2a98895910d63828081ad5867052 (diff)
Merge "add unit test for ping"
Diffstat (limited to 'yardstick')
-rw-r--r--yardstick/benchmark/scenarios/networking/ping.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/yardstick/benchmark/scenarios/networking/ping.py b/yardstick/benchmark/scenarios/networking/ping.py
index cd4054fcd..a027c817a 100644
--- a/yardstick/benchmark/scenarios/networking/ping.py
+++ b/yardstick/benchmark/scenarios/networking/ping.py
@@ -59,20 +59,3 @@ class Ping(base.Scenario):
assert rtt <= sla_max_rtt, "rtt %f > sla_max_rtt" % rtt
return rtt
-
-
-def _test():
- '''internal test function'''
- key_filename = pkg_resources.resource_filename('yardstick.resources',
- 'files/yardstick_key')
- ctx = {'host': '172.16.0.137',
- 'user': 'cirros',
- 'key_filename': key_filename}
- p = Ping(ctx)
- args = {'options': '-c 2 -s 200',
- 'ipaddr': '172.16.0.138'}
- result = p.run(args)
- print result
-
-if __name__ == '__main__':
- _test()