mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Let local node e2e return error.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
1a44e26670
commit
55dc6f67d3
@ -57,16 +57,18 @@ func main() {
|
|||||||
ginkgo := filepath.Join(outputDir, "ginkgo")
|
ginkgo := filepath.Join(outputDir, "ginkgo")
|
||||||
test := filepath.Join(outputDir, "e2e_node.test")
|
test := filepath.Join(outputDir, "e2e_node.test")
|
||||||
|
|
||||||
if *systemSpecName == "" {
|
args := []string{*ginkgoFlags, test, "--", *testFlags}
|
||||||
runCommand(ginkgo, *ginkgoFlags, test, "--", *testFlags)
|
if *systemSpecName != "" {
|
||||||
return
|
rootDir, err := builder.GetK8sRootDir()
|
||||||
|
if err != nil {
|
||||||
|
glog.Fatalf("Failed to get k8s root directory: %v", err)
|
||||||
|
}
|
||||||
|
systemSpecFile := filepath.Join(rootDir, systemSpecPath, *systemSpecName+".yaml")
|
||||||
|
args = append(args, fmt.Sprintf("--system-spec-name=%s --system-spec-file=%s", *systemSpecName, systemSpecFile))
|
||||||
}
|
}
|
||||||
rootDir, err := builder.GetK8sRootDir()
|
if err := runCommand(ginkgo, args...); err != nil {
|
||||||
if err != nil {
|
glog.Exitf("Test failed: %v", err)
|
||||||
glog.Fatalf("Failed to get k8s root directory: %v", err)
|
|
||||||
}
|
}
|
||||||
systemSpecFile := filepath.Join(rootDir, systemSpecPath, *systemSpecName+".yaml")
|
|
||||||
runCommand(ginkgo, *ginkgoFlags, test, "--", fmt.Sprintf("--system-spec-name=%s --system-spec-file=%s", *systemSpecName, systemSpecFile), *testFlags)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user