expose e2e methods for downstream use

pull/6/head
deads2k 2015-08-12 15:38:51 -04:00
parent 5c08d276a0
commit 2952af0d59
3 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,7 @@ type command struct {
component string
}
func coreDump(dir string) {
func CoreDump(dir string) {
c, err := loadClient()
if err != nil {
fmt.Printf("Error creating client: %v", err)

View File

@ -91,7 +91,7 @@ func TestE2E(t *testing.T) {
if err := os.MkdirAll(*reportDir, 0755); err != nil {
glog.Errorf("Failed creating report directory: %v", err)
}
defer coreDump(*reportDir)
defer CoreDump(*reportDir)
}
if testContext.Provider == "" {

View File

@ -125,6 +125,10 @@ type TestContextType struct {
var testContext TestContextType
func SetTestContext(t TestContextType) {
testContext = t
}
type ContainerFailures struct {
status *api.ContainerStateTerminated
restarts int