summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/loadtest/RunEte.py
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-05-01 18:52:33 -0400
committerDR695H <dr695h@att.com>2019-05-01 18:53:14 -0400
commitae6fedd18ad51f175d6a2e2346f284a68b6e4967 (patch)
tree40cf730e4178000533b83ebffdf6abe04011ce06 /robotframework-onap/loadtest/RunEte.py
parent308b44cc1e6b95df3051e5f7db94389696763cca (diff)
support python 3
support python 3 in all files, also support python 2 however so everything should continue to work Change-Id: I4ace08d2bb0623c0fdc61f2fe39d2339817aa916 Issue-ID: TEST-141 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/loadtest/RunEte.py')
-rw-r--r--robotframework-onap/loadtest/RunEte.py2
1 files changed, 1 insertions, 1 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())))