X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FHoststackUtil.py;h=234a3ebc69d532f689ae2acd276dcad57ea73f8e;hb=61dae95975d881bc3f9cef16f1aee47f649374d8;hp=2c9c080b69ce75bb1815297fce01e69d5331c6c1;hpb=8bc3a1425ee60cc5035923e355373afb4d78e225;p=csit.git diff --git a/resources/libraries/python/HoststackUtil.py b/resources/libraries/python/HoststackUtil.py index 2c9c080b69..234a3ebc69 100644 --- a/resources/libraries/python/HoststackUtil.py +++ b/resources/libraries/python/HoststackUtil.py @@ -44,7 +44,7 @@ class HoststackUtil(): vpp_echo_cmd = {} vpp_echo_cmd[u"name"] = u"vpp_echo" vpp_echo_cmd[u"args"] = f"{vpp_echo_attributes[u'role']} " \ - f"socket-name {vpp_echo_attributes[u'vpp_api_socket']} " \ + f"socket-name {vpp_echo_attributes[u'app_api_socket']} " \ f"{vpp_echo_attributes[u'json_output']} " \ f"uri {proto}://{addr}/{port} " \ f"nthreads {vpp_echo_attributes[u'nthreads']} " \ @@ -435,7 +435,7 @@ class HoststackUtil(): program_json = json.loads(json_results) export_hoststack_results( bandwidth=program_json["rx_bits_per_second"], - duration=program_json["time"] + duration=float(program_json["time"]) ) else: test_results += u"Invalid test data output!\n" + program_stdout