From bf86d29b9edb7e1346978c74ea837b5ec3683b2d Mon Sep 17 00:00:00 2001 From: Mara Mihali Date: Wed, 23 Jun 2021 16:23:53 +0000 Subject: pkg/instance: add RunnerCmd This function creates the command for starting a runner with the provided command line arguments. --- pkg/instance/instance.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/instance/instance.go') 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) +} -- cgit mrf-deployment