Skip to content

Commit

Permalink
keep directory for next step
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
  • Loading branch information
alegrey91 committed Sep 6, 2024
1 parent 924a4df commit 43a1409
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

func TestFwdctl(t *testing.T) {
testscript.Run(t, testscript.Params{
TestWork: true,
Dir: "tests",
Cmds: customCommands(),
RequireExplicitExec: true,
Expand Down
7 changes: 4 additions & 3 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
"os/exec"
"path/filepath"
"regexp"
Expand Down Expand Up @@ -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",
Expand All @@ -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),
"--",
}

Expand Down

0 comments on commit 43a1409

Please sign in to comment.