Skip to content

Commit

Permalink
/go/performance/utils/benchmark_runner/run_test.go: hardcode doltgres…
Browse files Browse the repository at this point in the history
… exec path for test
  • Loading branch information
coffeegoddd committed Feb 15, 2024
1 parent 7d34729 commit 7abca4f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion go/performance/utils/benchmark_runner/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestDoltgresPostgresSysbenchRunner(t *testing.T) {
Host: "127.0.0.1",
Version: "b139dfb",
ResultsFormat: CsvFormat,
ServerExec: "doltgres",
ServerExec: getDoltgresExec(),
},
},
ScriptDir: "/sysbench-lua-scripts",
Expand Down Expand Up @@ -267,3 +267,11 @@ func TestDoltMysqlTpccRunner(t *testing.T) {
log.Fatal(err)
}
}

func getDoltgresExec() string {
version := os.Getenv("DOLTGRESQL_VERSION")
if version == "" {
version = "v0.4.0"
}
return fmt.Sprintf("/doltgresql/utils/doltgres_builder/cmd/doltgresBin/%s/doltgres", version)
}

0 comments on commit 7abca4f

Please sign in to comment.