Skip to content

Commit 224ae89

Browse files
committed
asim: place generated output in two subfolders
Previously, we split different test modes into their own subfolders. This commit extends the same change to the generated folder, so that its outputs are also placed into two subfolders. Note that these are only organizational clean ups - tests were grouped and labeled based on their original purpose. Tests under sma may still specify cfgs = (mma-only or mma-count) and vice-versa for tests under mma.
1 parent c14a687 commit 224ae89

File tree

7 files changed

+2
-2
lines changed

7 files changed

+2
-2
lines changed

pkg/kv/kvserver/asim/tests/datadriven_simulation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ func TestDataDriven(t *testing.T) {
474474
seed := int64(42)
475475
duration := 30 * time.Minute
476476
name := strings.TrimSuffix(filepath.Base(path), filepath.Ext(path))
477-
plotDir := datapathutils.TestDataPath(t, "generated", name)
477+
plotDir := datapathutils.TestDataPath(t, "generated", mode, name)
478478
var rewrite bool
479479
require.NoError(t, sniffarg.DoEnv("rewrite", &rewrite))
480480
var cfgs []string // configurations to run the simulation with

pkg/kv/kvserver/asim/tests/testdata/generated/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Except this specific directory (relative to .gitignore)
77
# Note that this intentionally does not include subdirectories (such as traces)
88
# which are not deterministic.
9-
!rebalancing/**
9+
!sma/rebalancing/**
1010
**/traces
1111
# And the readme file.
1212
!README.md
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)