Skip to content

Commit 42e18f7

Browse files
authored
Merge pull request #595 from mattcary/artifact-name
Strip .yaml from test output dirs
2 parents d072e3b + a6fba2e commit 42e18f7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/k8s-integration/main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,15 @@ func handle() error {
370370
if len(*storageClassFiles) != 0 {
371371
storageClasses := strings.Split(*storageClassFiles, ",")
372372
var ginkgoErrors []string
373+
var testOutputDirs []string
373374
for _, scFile := range storageClasses {
374-
if err = runCSITests(*platform, pkgDir, testDir, *testFocus, testSkip, scFile, *snapshotClassFile, cloudProviderArgs, *deploymentStrat, scFile); err != nil {
375+
outputDir := strings.TrimSuffix(scFile, ".yaml")
376+
testOutputDirs = append(testOutputDirs, outputDir)
377+
if err = runCSITests(*platform, pkgDir, testDir, *testFocus, testSkip, scFile, *snapshotClassFile, cloudProviderArgs, *deploymentStrat, outputDir); err != nil {
375378
ginkgoErrors = append(ginkgoErrors, err.Error())
376379
}
377380
}
378-
if err = mergeArtifacts(storageClasses); err != nil {
381+
if err = mergeArtifacts(testOutputDirs); err != nil {
379382
return fmt.Errorf("artifact merging failed: %w", err)
380383
}
381384
if ginkgoErrors != nil {

0 commit comments

Comments
 (0)