Skip to content

Commit

Permalink
fix(soh): location of custom test scripts now get referenced correctly
Browse files Browse the repository at this point in the history
This commit reverts a change made in commit 2bff362 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
  • Loading branch information
activeshadow committed Feb 15, 2024
1 parent d023308 commit 198ba5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/api/soh/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 198ba5a

Please sign in to comment.