Skip to content

Commit 96baece

Browse files
committed
roachtest: add saved param if saved
1 parent 9678bad commit 96baece

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/cmd/roachtest/test_runner.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,13 +2275,15 @@ func logTestParameters(l *logger.Logger, params map[string]string) {
22752275

22762276
func getTestParameters(t *testImpl, c *clusterImpl, createOpts *vm.CreateOpts) map[string]string {
22772277
spec := t.spec
2278+
22782279
clusterParams := map[string]string{
22792280
"cloud": roachtestflags.Cloud.String(),
22802281
"cpu": fmt.Sprintf("%d", spec.Cluster.CPUs),
22812282
"ssd": fmt.Sprintf("%d", spec.Cluster.SSDs),
22822283
"runtimeAssertionsBuild": fmt.Sprintf("%t", roachtestutil.UsingRuntimeAssertions(t)),
22832284
"coverageBuild": fmt.Sprintf("%t", t.goCoverEnabled),
22842285
}
2286+
22852287
// Emit CPU architecture only if it was specified; otherwise, it's captured below, assuming cluster was created.
22862288
if spec.Cluster.Arch != "" {
22872289
clusterParams["arch"] = string(spec.Cluster.Arch)
@@ -2300,6 +2302,13 @@ func getTestParameters(t *testImpl, c *clusterImpl, createOpts *vm.CreateOpts) m
23002302
// Hence, we only emit when arch was unspecified.
23012303
clusterParams["arch"] = string(c.arch)
23022304
}
2305+
2306+
c.destroyState.mu.Lock()
2307+
saved, savedMsg := c.destroyState.mu.saved, c.destroyState.mu.savedMsg
2308+
c.destroyState.mu.Unlock()
2309+
if saved {
2310+
clusterParams["saved"] = savedMsg
2311+
}
23032312
}
23042313

23052314
extraParams := t.getExtraParams()

0 commit comments

Comments
 (0)