Skip to content

Commit 9e6c008

Browse files
authored
Merge pull request #184 from msau42/fix-test-focus
Pass ARTIFACTS to k8s e2e
2 parents a477bd5 + f21ca8c commit 9e6c008

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/k8s-integration/main.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,15 @@ func runTests(k8sDir string) error {
205205
if err != nil {
206206
return err
207207
}
208-
testArgs := "--test_args=--ginkgo.focus=CSI.*gcePD-external --ginkgo.skip=BlockVolume|\\[Serial\\]|kubelet.*down"
209-
cmd := exec.Command("go", "run", "hack/e2e.go", "--", "--check-version-skew=false", "--test", "--ginkgo-parallel", testArgs)
208+
artifactsDir, _ := os.LookupEnv("ARTIFACTS")
209+
reportArg := fmt.Sprintf("--report-dir=%s", artifactsDir)
210+
testArgs := fmt.Sprintf("--test_args=--ginkgo.focus=CSI.*gcePD-external --ginkgo.skip=\\[Serial\\]|kubelet.*down %s", reportArg)
211+
cmd := exec.Command("go", "run", "hack/e2e.go",
212+
"--",
213+
"--check-version-skew=false",
214+
"--test",
215+
"--ginkgo-parallel",
216+
testArgs)
210217
err = runCommand("Running Tests", cmd)
211218
if err != nil {
212219
return fmt.Errorf("failed to run tests on e2e cluster: %v", err)

0 commit comments

Comments
 (0)