test framework: collect logs earlier
Logs will be lost if we collect them after pods are uninstalled. So we need to collect them before purging. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
25f4f889c5
commit
40d37a165f
2 files changed
+3
-1
No files matched your search
@@ -365,6 +365,9 @@ func (h *CephInstaller) UninstallRookFromMultipleNS(systemNamespace string, name
|
||||
h.checkCephHealthStatus(namespace)
|
||||
}
|
||||
|
||||
// Gather logs after status checks
|
||||
h.GatherAllRookLogs(namespace, SystemNamespace(namespace), h.T().Name())
|
||||
|
||||
roles := h.Manifests.GetClusterRoles(namespace, systemNamespace)
|
||||
_, err = h.k8shelper.KubectlWithStdin(roles, deleteFromStdinArgs...)
|
||||
|
||||
|
||||
@@ -140,6 +140,5 @@ func (op *TestCluster) SetInstallData(version string) {}
|
||||
|
||||
// TearDownRook is a wrapper for tearDown after Suite
|
||||
func (op *TestCluster) Teardown() {
|
||||
op.installer.GatherAllRookLogs(op.namespace, installer.SystemNamespace(op.namespace), op.installer.T().Name())
|
||||
op.installer.UninstallRook(op.namespace)
|
||||
}
|
||||
Reference in new issue
Block a user