diff options
author | fmenguy <francoisregis.menguy@orange.com> | 2021-07-07 11:05:28 +0200 |
---|---|---|
committer | fmenguy <francoisregis.menguy@orange.com> | 2021-07-08 14:08:12 +0200 |
commit | 6b8818d15c7f88706ba638df0e5320bc68572e19 (patch) | |
tree | ff9014aae6582739571c8b9ce128072bb667fdc9 /nfvbench/nfvbench.py | |
parent | d746a7456e5e06c90edf61d04bdf33d97e5b958f (diff) |
NFVBENCH-215 Fix wrong throughput ratio in latency tests
Change-Id: I5c976dd49a2c17b47559b1d6a565a6e78f7cfd0e
Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/nfvbench.py')
-rw-r--r-- | nfvbench/nfvbench.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py index 0719247..740dca2 100644 --- a/nfvbench/nfvbench.py +++ b/nfvbench/nfvbench.py @@ -736,7 +736,8 @@ def main(): # dump the contents of the trex log file if opts.show_trex_log: try: - print(open('/tmp/trex.log').read(), end="") + with open('/tmp/trex.log') as trex_log_file: + print(trex_log_file.read(), end="") except FileNotFoundError: print("No TRex log file found!") sys.exit(0) |