use temp dir
This commit is contained in:
parent
7636882a53
commit
a296b64f16
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -180,7 +180,6 @@ jobs:
|
||||
CORSO_SECONDARY_M365_TEST_USER_ID: ${{ vars.CORSO_SECONDARY_M365_TEST_USER_ID }}
|
||||
CORSO_PASSPHRASE: ${{ secrets.INTEGRATION_TEST_CORSO_PASSPHRASE }}
|
||||
S3_BUCKET: ${{ secrets.CI_TESTS_S3_BUCKET }}
|
||||
TEST_DIR: /tmp/corso-trusted-testlog
|
||||
run: |
|
||||
set -euo pipefail
|
||||
go test \
|
||||
|
||||
7
src/pkg/storage/testdata/storage.go
vendored
7
src/pkg/storage/testdata/storage.go
vendored
@ -31,11 +31,6 @@ var AWSStorageCredEnvs = []string{
|
||||
func NewPrefixedS3Storage(t tester.TestT) storage.Storage {
|
||||
now := tester.LogTimeOfTest(t)
|
||||
|
||||
dir := t.TempDir()
|
||||
if givenDir := os.Getenv("TEST_DIR"); len(givenDir) > 0 {
|
||||
dir = givenDir
|
||||
}
|
||||
|
||||
cfg, err := tconfig.ReadTestConfig()
|
||||
require.NoError(t, err, "configuring storage from test file", clues.ToCore(err))
|
||||
|
||||
@ -50,7 +45,7 @@ func NewPrefixedS3Storage(t tester.TestT) storage.Storage {
|
||||
},
|
||||
storage.CommonConfig{
|
||||
Corso: GetAndInsertCorso(""),
|
||||
KopiaCfgDir: dir,
|
||||
KopiaCfgDir: t.TempDir(),
|
||||
})
|
||||
require.NoErrorf(t, err, "creating storage: %+v", clues.ToCore(err))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user