diff options
author | Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2015-06-15 16:15:24 +0200 |
---|---|---|
committer | Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2015-06-15 16:56:32 +0200 |
commit | 17e94ff1e86c2a98895910d63828081ad5867052 (patch) | |
tree | 1c9b0f8462890dc0c1a0021a53e396d5f104cda8 /yardstick/benchmark/scenarios/networking/ping.py | |
parent | adf4a310ea7138866e77b0759a07042daac0cca7 (diff) |
add unit test for ping
Running of unittest from run_test.sh is NOT enabled.
JIRA:-
Change-Id: I741d63e8ab37570c3cf67353fafc7f5210382219
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/networking/ping.py')
-rw-r--r-- | yardstick/benchmark/scenarios/networking/ping.py | 17 |
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() |