From 43a1409d2d148ac2d01f451bab03c04db120782b Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Sat, 7 Sep 2024 01:34:04 +0200 Subject: [PATCH] keep directory for next step Signed-off-by: Alessio Greggi --- main_test.go | 1 + utils.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main_test.go b/main_test.go index db3972c..1a206d0 100644 --- a/main_test.go +++ b/main_test.go @@ -8,6 +8,7 @@ import ( func TestFwdctl(t *testing.T) { testscript.Run(t, testscript.Params{ + TestWork: true, Dir: "tests", Cmds: customCommands(), RequireExplicitExec: true, diff --git a/utils.go b/utils.go index 5318303..b3d6e4a 100644 --- a/utils.go +++ b/utils.go @@ -3,6 +3,7 @@ package main import ( "crypto/rand" "encoding/base64" + "fmt" "os/exec" "path/filepath" "regexp" @@ -49,7 +50,7 @@ func fwdExists(ts *testscript.TestScript, neg bool, args []string) { //nolint:all func execCmd(ts *testscript.TestScript, neg bool, args []string) { var backgroundSpecifier = regexp.MustCompile(`^&([a-zA-Z_0-9]+&)?$`) - //uuid := getRandomString() + uuid := getRandomString() customCommand := []string{ "/usr/local/bin/harpoon", "capture", @@ -60,8 +61,8 @@ func execCmd(ts *testscript.TestScript, neg bool, args []string) { "integration-test-syscalls", "--include-cmd-stdout", "--include-cmd-stderr", - //"--name", - //fmt.Sprintf("main_main_%s", uuid), + "--name", + fmt.Sprintf("main_main_%s", uuid), "--", }