mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Merge pull request #8265 from pmorie/e2e
Fix path construction bug in shell e2e
This commit is contained in:
commit
a91a7bfe77
@ -20,23 +20,16 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
root = absOrDie(filepath.Clean(filepath.Join(path.Base(os.Args[0]), "..")))
|
|
||||||
)
|
|
||||||
|
|
||||||
var _ = Describe("Shell", func() {
|
var _ = Describe("Shell", func() {
|
||||||
|
bashE2ERoot := filepath.Join(testContext.RepoRoot, "hack/e2e-suite")
|
||||||
|
|
||||||
defer GinkgoRecover()
|
|
||||||
// Slurp up all the tests in hack/e2e-suite
|
// Slurp up all the tests in hack/e2e-suite
|
||||||
bashE2ERoot := filepath.Join(root, "hack/e2e-suite")
|
|
||||||
files, err := ioutil.ReadDir(bashE2ERoot)
|
files, err := ioutil.ReadDir(bashE2ERoot)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fail(fmt.Sprintf("Error reading test suites from %v %v", bashE2ERoot, err.Error()))
|
Fail(fmt.Sprintf("Error reading test suites from %v %v", bashE2ERoot, err.Error()))
|
||||||
|
Loading…
Reference in New Issue
Block a user