diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-11 12:53:07 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-11 12:53:07 +0200 |
commit | 9adfbada8a429dcdd7bf95d9b52d28bb3448e1d4 (patch) | |
tree | d8473c54c1520103a5ae45200868ffb949d11592 /scripts/automation/trex_perf.py | |
parent | 4b3092339d578f2c08de2fa1a55de5dea5ecf053 (diff) |
validate_type for easier type checks, hltapi move to trex_stl_lib
Diffstat (limited to 'scripts/automation/trex_perf.py')
-rwxr-xr-x | scripts/automation/trex_perf.py | 4 |
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: |