diff options
Diffstat (limited to 'robotframework-onap/loadtest')
-rw-r--r-- | robotframework-onap/loadtest/RunEte.py | 2 | ||||
-rw-r--r-- | robotframework-onap/loadtest/TestMain.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/robotframework-onap/loadtest/RunEte.py b/robotframework-onap/loadtest/RunEte.py index 5012e7d..0d5df84 100644 --- a/robotframework-onap/loadtest/RunEte.py +++ b/robotframework-onap/loadtest/RunEte.py @@ -34,6 +34,6 @@ class RunEte(Thread): env = dict(os.environ, SOAKSUBFOLDER=self.soaksubfolder + "/") output = subprocess.check_output(["bash", self.robot_command, self.robot_test, self.test_number], shell=False, env=env) logging.info("{} ({}) {}".format(self.getName(), self.robot_test, output)) - except Exception, e: + except Exception as e: logging.error("{} ({}) Unexpected error {}".format(self.getName(), self.robot_test, repr(e))) logging.info("{} ({}) ended - {}".format(self.getName(), self.robot_test, str(datetime.now()))) diff --git a/robotframework-onap/loadtest/TestMain.py b/robotframework-onap/loadtest/TestMain.py index 81c635f..3e8eb72 100644 --- a/robotframework-onap/loadtest/TestMain.py +++ b/robotframework-onap/loadtest/TestMain.py @@ -66,7 +66,7 @@ def main(argv=None): controller = TestController(opts) controller.execute() - except Exception, e: + except Exception as e: indent = len(program_name) * " " sys.stderr.write(program_name + ": " + repr(e) + "\n") sys.stderr.write(indent + " for help use --help") @@ -75,7 +75,7 @@ def main(argv=None): if __name__ == "__main__": if DEBUG: - print "debug" + print("debug") if TESTRUN: import doctest doctest.testmod() |