test: add ci logs when build is successful
Signed-off-by: zhangyue <zy675793960@yeah.net>
This commit is contained in:
1 parent
70196e5f5f
commit
1859096041
5 files changed
+7
-10
No files matched your search
@@ -141,8 +141,6 @@ func (op *TestCluster) SetInstallData(version string) {}
|
||||
|
||||
// TearDownRook is a wrapper for tearDown after Suite
|
||||
func (op *TestCluster) Teardown() {
|
||||
if op.installer.T().Failed() {
|
||||
op.installer.GatherAllRookLogs(op.namespace, installer.SystemNamespace(op.namespace), op.installer.T().Name())
|
||||
}
|
||||
op.installer.GatherAllRookLogs(op.namespace, installer.SystemNamespace(op.namespace), op.installer.T().Name())
|
||||
op.installer.UninstallRook(op.helmInstalled, op.namespace)
|
||||
}
|
||||
@@ -132,9 +132,9 @@ func (s *CassandraSuite) Teardown() {
|
||||
if s.T().Failed() {
|
||||
installer.GatherCRDObjectDebuggingInfo(s.k8sHelper, s.systemNamespace)
|
||||
installer.GatherCRDObjectDebuggingInfo(s.k8sHelper, s.namespace)
|
||||
s.installer.GatherAllCassandraLogs(s.systemNamespace, s.namespace, s.T().Name())
|
||||
}
|
||||
|
||||
s.installer.GatherAllCassandraLogs(s.systemNamespace, s.namespace, s.T().Name())
|
||||
s.installer.UninstallCassandra(s.systemNamespace, s.namespace)
|
||||
}
|
||||
|
||||
|
||||
@@ -91,8 +91,8 @@ func (suite *CockroachDBSuite) Teardown() {
|
||||
if suite.T().Failed() {
|
||||
installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.systemNamespace)
|
||||
installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.namespace)
|
||||
suite.installer.GatherAllCockroachDBLogs(suite.systemNamespace, suite.namespace, suite.T().Name())
|
||||
}
|
||||
suite.installer.GatherAllCockroachDBLogs(suite.systemNamespace, suite.namespace, suite.T().Name())
|
||||
suite.installer.UninstallCockroachDB(suite.systemNamespace, suite.namespace)
|
||||
}
|
||||
|
||||
|
||||
@@ -177,10 +177,9 @@ func (o MCTestOperations) Teardown() {
|
||||
o.T().FailNow()
|
||||
}
|
||||
}()
|
||||
if o.T().Failed() {
|
||||
o.installer.GatherAllRookLogs(o.namespace1, o.systemNamespace, o.T().Name())
|
||||
o.installer.GatherAllRookLogs(o.namespace2, o.systemNamespace, o.T().Name())
|
||||
}
|
||||
|
||||
o.installer.GatherAllRookLogs(o.namespace1, o.systemNamespace, o.T().Name())
|
||||
o.installer.GatherAllRookLogs(o.namespace2, o.systemNamespace, o.T().Name())
|
||||
|
||||
o.installer.UninstallRookFromMultipleNS(false, installer.SystemNamespace(o.namespace1), o.namespace1, o.namespace2)
|
||||
}
|
||||
|
||||
@@ -92,8 +92,8 @@ func (suite *NfsSuite) Teardown() {
|
||||
if suite.T().Failed() {
|
||||
installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.systemNamespace)
|
||||
installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.namespace)
|
||||
suite.installer.GatherAllNFSServerLogs(suite.systemNamespace, suite.namespace, suite.T().Name())
|
||||
}
|
||||
suite.installer.GatherAllNFSServerLogs(suite.systemNamespace, suite.namespace, suite.T().Name())
|
||||
suite.installer.UninstallNFSServer(suite.systemNamespace, suite.namespace)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user