pass test dir
This commit is contained in:
parent
464dc95627
commit
1a1c888fb4
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -180,6 +180,7 @@ jobs:
|
|||||||
CORSO_SECONDARY_M365_TEST_USER_ID: ${{ vars.CORSO_SECONDARY_M365_TEST_USER_ID }}
|
CORSO_SECONDARY_M365_TEST_USER_ID: ${{ vars.CORSO_SECONDARY_M365_TEST_USER_ID }}
|
||||||
CORSO_PASSPHRASE: ${{ secrets.INTEGRATION_TEST_CORSO_PASSPHRASE }}
|
CORSO_PASSPHRASE: ${{ secrets.INTEGRATION_TEST_CORSO_PASSPHRASE }}
|
||||||
S3_BUCKET: ${{ secrets.CI_TESTS_S3_BUCKET }}
|
S3_BUCKET: ${{ secrets.CI_TESTS_S3_BUCKET }}
|
||||||
|
TEST_DIR: /tmp/corso-trusted-testlog
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
go test \
|
go test \
|
||||||
@ -218,7 +219,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ci-test-log
|
name: ci-test-log
|
||||||
path: /tmp/*
|
path: /tmp/corso-trusted-testlog/*
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
|
|||||||
3
src/pkg/storage/testdata/storage.go
vendored
3
src/pkg/storage/testdata/storage.go
vendored
@ -33,6 +33,9 @@ func NewPrefixedS3Storage(t tester.TestT) storage.Storage {
|
|||||||
now := tester.LogTimeOfTest(t)
|
now := tester.LogTimeOfTest(t)
|
||||||
|
|
||||||
dir := t.TempDir()
|
dir := t.TempDir()
|
||||||
|
if givenDir := os.Getenv("TEST_DIR"); len(givenDir) > 0 {
|
||||||
|
dir = givenDir
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Println("----------------->", dir)
|
fmt.Println("----------------->", dir)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user