Commit fdbf548c authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend/test: Store snapshots on setUpClass failure

parent 9525e8f4
...@@ -559,6 +559,7 @@ class SlaveHttpFrontendTestCase(SlapOSInstanceTestCase): ...@@ -559,6 +559,7 @@ class SlaveHttpFrontendTestCase(SlapOSInstanceTestCase):
cls.waitForCaddy() cls.waitForCaddy()
except BaseException: except BaseException:
cls.logger.exception("Error during setUpClass") cls.logger.exception("Error during setUpClass")
cls._storeSnapshot("{}.setUpClass".format(cls.__name__))
cls._cleanup() cls._cleanup()
cls.setUp = lambda self: self.fail('Setup Class failed.') cls.setUp = lambda self: self.fail('Setup Class failed.')
raise raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment