test: add ci logs when build is successful

Signed-off-by: zhangyue <zy675793960@yeah.net>
This commit is contained in:
zhangyue committed 2019-03-10 12:18:23 +08:00
1 parent 70196e5f5f
commit 1859096041
5 files changed
+7 -10

No files matched your search

+1 -3
View File
@@ -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)
}
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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)
}
+3 -4
View File
@@ -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)
}
+1 -1
View File
@@ -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)
}