Skip to content

Commit

Permalink
Set the default log path in tests (hazelcast#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuce authored Sep 22, 2023
1 parent 39c2caa commit 28f48fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/it/test_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ func (tcx TestContext) Tester(f func(tcx TestContext)) {
d, _ := filepath.Split(p)
check.Must(os.MkdirAll(d, 0700))
home.WithFile(p, bytesConfig, func(_ string) {
if tcx.LogPath == "" {
tcx.LogPath = paths.ResolveLogPath("test")
}
if tcx.LogLevel == "" {
tcx.LogLevel = "info"
}
tcx.main = check.MustValue(tcx.createMain())
tcx.T.Logf("created CLC main")
defer func() {
Expand Down

0 comments on commit 28f48fe

Please sign in to comment.