File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pkg/kv/kvserver/asim/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,9 @@ func TestDataDriven(t *testing.T) {
449
449
seed := int64 (42 )
450
450
duration := 30 * time .Minute
451
451
name := strings .TrimSuffix (filepath .Base (path ), filepath .Ext (path ))
452
+ plotDir := datapathutils .TestDataPath (t , "generated" , name )
453
+ var rewrite bool
454
+ require .NoError (t , sniffarg .DoEnv ("rewrite" , & rewrite ))
452
455
var cfgs []string // configurations to run the simulation with
453
456
var metrics []string // metrics to summarize
454
457
@@ -544,9 +547,6 @@ func TestDataDriven(t *testing.T) {
544
547
545
548
// Generate artifacts. Hash artifact input data to ensure they are
546
549
// up to date.
547
- var rewrite bool
548
- require .NoError (t , sniffarg .DoEnv ("rewrite" , & rewrite ))
549
- plotDir := datapathutils .TestDataPath (t , "generated" , name )
550
550
hasher := fnv .New64a ()
551
551
// TODO(tbg): need to decide whether multiple evals in a single file
552
552
// is a feature or an anti-pattern. If it's a feature, we should let
You can’t perform that action at this time.
0 commit comments