Skip to content

Commit

Permalink
Fix send failure logs on kokoro artifacts (#1886)
Browse files Browse the repository at this point in the history
* fix send logs on kokoro

* fix file name

* updating comment
  • Loading branch information
Tulsishah authored May 6, 2024
1 parent 923987b commit 61c9523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/integration_tests/util/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ func UnMountBucket() {

func SaveLogFileInCaseOfFailure(successCode int) {
if successCode != 0 {
// Logfile name will be failed-integration-test-log-xxxxx
failedlogsFileName := "failed-integration-test-logs-" + GenerateRandomString(5)
// Logfile name will be gcsfuse-failed-integration-test-log-xxxxx
failedlogsFileName := "gcsfuse-failed-integration-test-logs-" + GenerateRandomString(5)
log.Printf("log file is available on kokoro artifacts with file name: %s", failedlogsFileName)
logFileInKokoroArtifact := path.Join(os.Getenv("KOKORO_ARTIFACTS_DIR"), failedlogsFileName)
err := operations.CopyFile(logFile, logFileInKokoroArtifact)
Expand Down

0 comments on commit 61c9523

Please sign in to comment.