X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9385f4e8b60658460d47a1051ef0e8b3be342cba..f0ea4324260fb4dc6df693d9548285bb64b3b69f:/sdk/go/arvadostest/run_servers.go diff --git a/sdk/go/arvadostest/run_servers.go b/sdk/go/arvadostest/run_servers.go index e922104aeb..27c552a4e1 100644 --- a/sdk/go/arvadostest/run_servers.go +++ b/sdk/go/arvadostest/run_servers.go @@ -99,14 +99,10 @@ func StopAPI() { exec.Command("python", "run_test_server.py", "stop").Run() } -// StartKeep starts 2 keep servers with enforcePermissions=false -func StartKeep() { - StartKeepWithParams(2, false) -} - -// StartKeepWithParams starts the given number of keep servers, +// StartKeep starts the given number of keep servers, // optionally with -enforce-permissions enabled. -func StartKeepWithParams(numKeepServers int, enforcePermissions bool) { +// Use numKeepServers = 2 and enforcePermissions = false under all normal circumstances. +func StartKeep(numKeepServers int, enforcePermissions bool) { cwd, _ := os.Getwd() defer os.Chdir(cwd) chdirToPythonTests() @@ -128,14 +124,10 @@ func StartKeepWithParams(numKeepServers int, enforcePermissions bool) { } } -func StopKeep() { - StopKeepWithParams(2) -} - -// StopKeepServers stops keep servers that were started with -// StartKeep. numkeepServers should be the same value that was passed -// to StartKeep. -func StopKeepWithParams(numKeepServers int) { +// StopKeep stops keep servers that were started with StartKeep. +// numkeepServers should be the same value that was passed to StartKeep, +// which is 2 under all normal circumstances. +func StopKeep(numKeepServers int) { cwd, _ := os.Getwd() defer os.Chdir(cwd) chdirToPythonTests()