Skip to content

Commit

Permalink
OSDK-2303: Scorecard testOutput is tightly coupled with storage mount…
Browse files Browse the repository at this point in the history
…Path

Signed-off-by: Andrej Podhradsky <apodhrad@redhat.com>
  • Loading branch information
apodhrad committed Jun 21, 2022
1 parent 9e95050 commit 4483d62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions changelog/fragments/fix-scorecard-mountpath.yaml
@@ -0,0 +1,7 @@
# entries is a list of entries to include in
# release notes and/or the migration guide
entries:
- description: >
Fixed scorecard testOutput tightly coupling with scorecard storage mountPath
kind: "bugfix"
breaking: false
2 changes: 1 addition & 1 deletion internal/scorecard/storage.go
Expand Up @@ -188,7 +188,7 @@ func gatherTestOutput(r PodTestRunner, suiteName, testName, podName, mountPath s
return err
}

srcPath := r.TestOutput
srcPath := mountPath
prefix := getStoragePrefix(srcPath)
prefix = path.Clean(prefix)
destPath := getDestPath(r.TestOutput, suiteName, testName)
Expand Down

0 comments on commit 4483d62

Please sign in to comment.