From 198ba5a5cdeaa081bef24ea0d853aac1ce3dc67c Mon Sep 17 00:00:00 2001 From: "Bryan T. Richardson" Date: Thu, 15 Feb 2024 11:14:52 -0700 Subject: [PATCH] fix(soh): location of custom test scripts now get referenced correctly This commit reverts a change made in commit 2bff3622 that prefixed the location of custom test scripts in VMs with the experiment namespace. minimega cc will search for a file to be sent in nested directories, but will not prefix it with the nested directory in the VM if the file was not prefixed with the nested directory when provided to the cc send command. fixes #175 --- src/go/api/soh/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/api/soh/util.go b/src/go/api/soh/util.go index 541bdf8b..e161adbf 100644 --- a/src/go/api/soh/util.go +++ b/src/go/api/soh/util.go @@ -1294,7 +1294,7 @@ func (this SOH) customTest(ctx context.Context, wg *mm.StateGroup, ns string, no } } - command := fmt.Sprintf("%s /tmp/miniccc/files/%s/%s", executor, ns, script) + command := fmt.Sprintf("%s /tmp/miniccc/files/%s", executor, script) opts := []mm.C2Option{mm.C2NS(ns), mm.C2VM(host), mm.C2SendFile(script), mm.C2Command(command), mm.C2Timeout(this.md.c2Timeout)} if this.md.useUUIDForC2Active(host) {