From 9adfbada8a429dcdd7bf95d9b52d28bb3448e1d4 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 11 Feb 2016 12:53:07 +0200 Subject: validate_type for easier type checks, hltapi move to trex_stl_lib --- scripts/automation/trex_perf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/automation/trex_perf.py') 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: -- cgit 1.2.3-korg