Skip to content

Commit f21ca8c

Browse files
committed
Pass ARTIFACTS so that test logs will be written to directories that can be picked up by prow. Also allow block tests
1 parent a477bd5 commit f21ca8c

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)