From 9c445417875b0ea0126a6b4c001b895fd651fad9 Mon Sep 17 00:00:00 2001 From: HiteshRepo Date: Tue, 30 Jan 2024 16:09:02 +0530 Subject: [PATCH] log kopia config dir --- src/pkg/storage/testdata/storage.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pkg/storage/testdata/storage.go b/src/pkg/storage/testdata/storage.go index 0653ee0fd..b5b3e877f 100644 --- a/src/pkg/storage/testdata/storage.go +++ b/src/pkg/storage/testdata/storage.go @@ -1,6 +1,7 @@ package testdata import ( + "fmt" "os" "path/filepath" @@ -31,6 +32,10 @@ var AWSStorageCredEnvs = []string{ func NewPrefixedS3Storage(t tester.TestT) storage.Storage { now := tester.LogTimeOfTest(t) + dir := t.TempDir() + + fmt.Println("----------------->", dir) + cfg, err := tconfig.ReadTestConfig() require.NoError(t, err, "configuring storage from test file", clues.ToCore(err)) @@ -45,7 +50,7 @@ func NewPrefixedS3Storage(t tester.TestT) storage.Storage { }, storage.CommonConfig{ Corso: GetAndInsertCorso(""), - KopiaCfgDir: t.TempDir(), + KopiaCfgDir: dir, }) require.NoErrorf(t, err, "creating storage: %+v", clues.ToCore(err))