mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Use ginkoRecover to prevent shell.go from causing cryptic crash when running tests from wrong dir
This commit is contained in:
parent
3d1dfd47ee
commit
326b21e65b
@ -33,11 +33,13 @@ var (
|
||||
)
|
||||
|
||||
var _ = Describe("Shell", func() {
|
||||
|
||||
defer GinkgoRecover()
|
||||
// Slurp up all the tests in hack/e2e-suite
|
||||
bashE2ERoot := filepath.Join(root, "hack/e2e-suite")
|
||||
files, err := ioutil.ReadDir(bashE2ERoot)
|
||||
if err != nil {
|
||||
Fail(err.Error())
|
||||
Fail(fmt.Sprintf("Error reading test suites from %v %v", bashE2ERoot, err.Error()))
|
||||
}
|
||||
|
||||
for _, file := range files {
|
||||
|
Loading…
Reference in New Issue
Block a user