Skip to content

Commit

Permalink
Merge pull request kubernetes#22383 from spxtr/core
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Mar 8, 2016
2 parents 999e631 + 44ef122 commit 7e9256b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 156 deletions.
156 changes: 0 additions & 156 deletions test/e2e/core.go

This file was deleted.

12 changes: 12 additions & 0 deletions test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"net/url"
"os"
"os/exec"
"path"
"path/filepath"
"sort"
"strconv"
Expand Down Expand Up @@ -3559,3 +3560,14 @@ func CheckConnectivityToHost(f *Framework, nodeName, podName, host string) error
defer podClient.Delete(podName, nil)
return waitForPodSuccessInNamespace(f.Client, podName, contName, f.Namespace.Name)
}

// CoreDump SSHs to the master and all nodes and dumps their logs into dir.
// It shells out to cluster/log-dump.sh to accomplish this.
func CoreDump(dir string) {
cmd := exec.Command(path.Join(testContext.RepoRoot, "cluster", "log-dump.sh"), dir)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
Logf("Error running cluster/log-dump.sh: %v", err)
}
}

0 comments on commit 7e9256b

Please sign in to comment.