Skip to content

Commit

Permalink
Printing flags in test logs (#1885)
Browse files Browse the repository at this point in the history
* pritinting logs

* review comment
  • Loading branch information
Tulsishah committed May 6, 2024
1 parent 61c9523 commit 744605e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func runTestsOnGivenMountedTestBucket(bucketName string, flags [][]string, rootM

setup.SetMntDir(mntDirOfTestBucket)

log.Printf("Running dynamic mounting tests with flags: %s", flags[i])
// Running tests on flags.
successCode = setup.ExecuteTest(m)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func mountGcsFuseForFlagsAndExecuteTests(flags [][]string, m *testing.M) (succes
if err := MountGcsfuseWithOnlyDir(flags[i]); err != nil {
setup.LogAndExit(fmt.Sprintf("mountGcsfuse: %v\n", err))
}
log.Printf("Running only dir mounting tests with flags: %s", flags[i])
successCode = setup.ExecuteTestForFlagsSet(flags[i], m)
}
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func executeTestsForPersistentMounting(flagsSet [][]string, m *testing.M) (succe
if err = mountGcsfuseWithPersistentMounting(flagsSet[i]); err != nil {
setup.LogAndExit(fmt.Sprintf("mountGcsfuse: %v\n", err))
}
log.Printf("Running persistent mounting tests with flags: %s", flagsSet[i])
successCode = setup.ExecuteTestForFlagsSet(flagsSet[i], m)
}
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func executeTestsForStaticMounting(flagsSet [][]string, m *testing.M) (successCo
if err = MountGcsfuseWithStaticMounting(flagsSet[i]); err != nil {
setup.LogAndExit(fmt.Sprintf("mountGcsfuse: %v\n", err))
}
log.Printf("Running static mounting tests with flags: %s", flagsSet[i])
successCode = setup.ExecuteTestForFlagsSet(flagsSet[i], m)
}
return
Expand Down

0 comments on commit 744605e

Please sign in to comment.