Commit fea3bd23 authored by Jérome Perrin's avatar Jérome Perrin

testing/testcase: include partition dump when setup class fail

Sometimes instanciation fail because some service do not start and the
"check port listening" promises fail. In this case, it's very important
to also have the partition content to see what's in the log files.

/reviewed-on !175
parent 02c77c81
...@@ -434,7 +434,7 @@ class SlapOSInstanceTestCase(unittest.TestCase): ...@@ -434,7 +434,7 @@ class SlapOSInstanceTestCase(unittest.TestCase):
@classmethod @classmethod
def _storeSystemSnapshot(cls, name): def _storeSystemSnapshot(cls, name):
"""Store a snapshot of standalone slapos """Store a snapshot of standalone slapos and partitions.
Does not include software log, because this is stored at the end of software Does not include software log, because this is stored at the end of software
installation and software log is large. installation and software log is large.
...@@ -450,6 +450,7 @@ class SlapOSInstanceTestCase(unittest.TestCase): ...@@ -450,6 +450,7 @@ class SlapOSInstanceTestCase(unittest.TestCase):
cls._copySnapshot(standalone_log, name) cls._copySnapshot(standalone_log, name)
# store slapproxy database # store slapproxy database
cls._copySnapshot(cls.slap._proxy_database, name) cls._copySnapshot(cls.slap._proxy_database, name)
cls._storePartitionSnapshot(name)
def tearDown(self): def tearDown(self):
self._storePartitionSnapshot(self.id()) self._storePartitionSnapshot(self.id())
......
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