Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#9462 from sbueringer/pr-test-struc…
Browse files Browse the repository at this point in the history
…ture

🌱 test/e2e: structure resources by namespace/kind again
  • Loading branch information
k8s-ci-robot committed Sep 19, 2023
2 parents 66d18d9 + 9619616 commit 2639f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/framework/alltypes_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func dumpObject(resource runtime.Object, logPath string) {
namespace := metaObj.GetNamespace()
name := metaObj.GetName()

resourceFilePath := filepath.Clean(path.Join(logPath, kind, namespace, name+".yaml"))
resourceFilePath := filepath.Clean(path.Join(logPath, namespace, kind, name+".yaml"))
Expect(os.MkdirAll(filepath.Dir(resourceFilePath), 0750)).To(Succeed(), "Failed to create folder %s", filepath.Dir(resourceFilePath))

f, err := os.OpenFile(resourceFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
Expand Down

0 comments on commit 2639f2c

Please sign in to comment.