From 74dcd71f2efa3f3f08034319f381275420f35287 Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Sat, 7 Sep 2024 16:18:56 +0200 Subject: [PATCH] set work dir Signed-off-by: Alessio Greggi --- utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.go b/utils.go index 52f3a56..1740a90 100644 --- a/utils.go +++ b/utils.go @@ -51,6 +51,7 @@ func fwdExists(ts *testscript.TestScript, neg bool, args []string) { func execCmd(ts *testscript.TestScript, neg bool, args []string) { var backgroundSpecifier = regexp.MustCompile(`^&([a-zA-Z_0-9]+&)?$`) uuid := getRandomString() + workDir := ts.Getenv("WORK") customCommand := []string{ "/usr/local/bin/harpoon", "capture", @@ -58,8 +59,7 @@ func execCmd(ts *testscript.TestScript, neg bool, args []string) { "main.main", "--save", "--directory", - // TODO: change it to a general one - "/home/runner/work/fwdctl/fwdctl/integration-test-syscalls", + fmt.Sprintf("%s/integration-test-syscalls", workDir), "--include-cmd-stdout", "--include-cmd-stderr", "--name",