summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_perf.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_perf.py')
-rwxr-xr-xscripts/automation/trex_perf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/trex_perf.py b/scripts/automation/trex_perf.py
index beec5061..61874765 100755
--- a/scripts/automation/trex_perf.py
+++ b/scripts/automation/trex_perf.py
@@ -643,7 +643,7 @@ def _trex_run (job_summary, m, duration):
try:
results = trex_thread.run(m, duration)
- except Exception,e:
+ except Exception as e:
p.stop()
raise
@@ -1042,7 +1042,7 @@ def prepare_for_run (job_summary):
# create dir for reports
try:
job_summary['job_dir'] = os.path.abspath( os.path.join(os.getcwd(), 'logs', job_summary['job_dir']) )
- print job_summary['job_dir']
+ print(job_summary['job_dir'])
os.makedirs( job_summary['job_dir'] )
except OSError as err: