Fix seleneum blocking the gate
In case of screenshot failure, the test is blocking the gate. This should fix it so that it logs and moves on. Change-Id: I302a257281ebe210305e527e38c307aa32f26260
This commit is contained in:
parent
6543ea7bbe
commit
a075a3b1ba
@ -97,13 +97,14 @@ if __name__ == "__main__":
|
||||
try:
|
||||
i.setUp()
|
||||
i.testInstances()
|
||||
except Exception:
|
||||
print("Tearing down due to error.")
|
||||
i.screenshot()
|
||||
except Exception as e:
|
||||
print("Tearing down due to error. %s" % e)
|
||||
try:
|
||||
i.screenshot()
|
||||
i.tearDown()
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
print("Got another exception. %s" % e)
|
||||
pass
|
||||
raise
|
||||
pass
|
||||
else:
|
||||
i.tearDown()
|
||||
|
Loading…
Reference in New Issue
Block a user