From 6128509d663855e8c70b906080e8655e49fa06d2 Mon Sep 17 00:00:00 2001 From: Andrei Matei Date: Tue, 9 Oct 2018 00:20:11 -0400 Subject: [PATCH] roachtest: fix log dir of attached clusters Fixes #31119 Release note: None --- pkg/cmd/roachtest/cluster.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/roachtest/cluster.go b/pkg/cmd/roachtest/cluster.go index 0eb713d06e39..711467eb4c67 100644 --- a/pkg/cmd/roachtest/cluster.go +++ b/pkg/cmd/roachtest/cluster.go @@ -620,7 +620,8 @@ func attachToExistingCluster( t.Fatalf("TODO(peter): unsupported nodes spec: %v", nodes) } - l, err := rootLogger(t.Name()) + logPath := filepath.Join(t.ArtifactsDir(), "test.log") + l, err := rootLogger(logPath) if err != nil { t.Fatal(err) } @@ -663,7 +664,7 @@ func attachToExistingCluster( // validateCluster takes a cluster and checks that the reality corresponds to // the cluster's spec. It's intended to be used with clusters created by -// attachToExistingCluste(); otherwise, clusters create with newCluster() are +// attachToExistingCluster(); otherwise, clusters create with newCluster() are // know to be up to spec. func (c *cluster) validate(ctx context.Context, nodes []nodeSpec, l *logger) error { // Perform validation on the existing cluster.