Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix(trex): use reset instead of clear_profile
[csit.git]
/
GPL
/
tools
/
trex
/
trex_astf_profile.py
diff --git
a/GPL/tools/trex/trex_astf_profile.py
b/GPL/tools/trex/trex_astf_profile.py
index
936a8df
..
a4f03be
100644
(file)
--- a/
GPL/tools/trex/trex_astf_profile.py
+++ b/
GPL/tools/trex/trex_astf_profile.py
@@
-220,8
+220,7
@@
def simple_burst(
for warning in client.get_warnings():
print(warning)
for warning in client.get_warnings():
print(warning)
- # Now finish the complete reset.
- client.reset()
+ # No profile cleanup here, reset will be done in the finally block.
print(u"##### Statistics #####")
print(json.dumps(stats, indent=4, separators=(u",", u": ")))
print(u"##### Statistics #####")
print(json.dumps(stats, indent=4, separators=(u",", u": ")))
@@
-385,7
+384,7
@@
def simple_burst(
if async_start:
client.disconnect(stop_traffic=False, release_ports=True)
else:
if async_start:
client.disconnect(stop_traffic=False, release_ports=True)
else:
- client.
clear_profile
()
+ client.
reset
()
client.disconnect()
print(
f"multiplier={multiplier!r}; "
client.disconnect()
print(
f"multiplier={multiplier!r}; "