Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update VPP_STABLE_VER files
[csit.git]
/
resources
/
libraries
/
python
/
HoststackUtil.py
diff --git
a/resources/libraries/python/HoststackUtil.py
b/resources/libraries/python/HoststackUtil.py
index
2c9c080
..
399395d
100644
(file)
--- 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']} " \
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'
v
pp_api_socket']} " \
+ f"socket-name {vpp_echo_attributes[u'
a
pp_api_socket']} " \
f"{vpp_echo_attributes[u'json_output']} " \
f"uri {proto}://{addr}/{port} " \
f"nthreads {vpp_echo_attributes[u'nthreads']} " \
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"],
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
)
else:
test_results += u"Invalid test data output!\n" + program_stdout
@@
-445,7
+445,7
@@
class HoststackUtil():
program_json = json.loads(program_stdout)[u"intervals"][0][u"sum"]
try:
retransmits = program_json["retransmits"]
program_json = json.loads(program_stdout)[u"intervals"][0][u"sum"]
try:
retransmits = program_json["retransmits"]
- except
(KeyError)
:
+ except
KeyError
:
retransmits = None
export_hoststack_results(
bandwidth=program_json["bits_per_second"],
retransmits = None
export_hoststack_results(
bandwidth=program_json["bits_per_second"],