From 490c20e4d4adde0086cfe4fb7b4509f77a04a728 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Tue, 17 May 2022 15:32:04 +0200 Subject: fix(trex): use reset instead of clear_profile Now sure why clear_profile gets stuck with v2.97 (unless block=False), but calling reset() works, and will be less risky next time we bump TRex version. - Only ASTF for now. Change-Id: Ib6906fb8ce269e888bf0e0438d3309931d5e9981 Signed-off-by: Vratko Polak --- GPL/tools/trex/trex_astf_profile.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '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 936a8df436..a4f03bee3a 100644 --- 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) - # 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": "))) @@ -385,7 +384,7 @@ def simple_burst( if async_start: client.disconnect(stop_traffic=False, release_ports=True) else: - client.clear_profile() + client.reset() client.disconnect() print( f"multiplier={multiplier!r}; " -- cgit 1.2.3-korg