diff options
| author | Mara Mihali <maramihali@google.com> | 2021-06-23 16:23:53 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-06-30 09:35:14 +0200 |
| commit | bf86d29b9edb7e1346978c74ea837b5ec3683b2d (patch) | |
| tree | 3b2421a7eeea0adf572e467cef1d0430ed200cd4 /pkg/instance/instance.go | |
| parent | 090883682f4b0031511214e359fb7b4355e71364 (diff) | |
pkg/instance: add RunnerCmd
This function creates the command for starting a runner with the provided command line arguments.
Diffstat (limited to 'pkg/instance/instance.go')
| -rw-r--r-- | pkg/instance/instance.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 52881b353..19c71c067 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -499,3 +499,7 @@ var MakeBin = func() string { } return "make" }() + +func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int) string { + return fmt.Sprintf("%s -addr=%s -os=%s -arch=%s -pool=%v -vm=%v", prog, fwdAddr, os, arch, poolIdx, vmIdx) +} |
