pass test dir

This commit is contained in:
HiteshRepo 2024-01-30 16:59:48 +05:30
parent 464dc95627
commit 1a1c888fb4
2 changed files with 5 additions and 1 deletions

View File

@ -180,6 +180,7 @@ 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 \
@ -218,7 +219,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ci-test-log
path: /tmp/*
path: /tmp/corso-trusted-testlog/*
if-no-files-found: error
retention-days: 14

View File

@ -33,6 +33,9 @@ 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
}
fmt.Println("----------------->", dir)