From 1fef479fd865597f05eb7c4e49ba2698cd4c003b Mon Sep 17 00:00:00 2001 From: Nicola Ferraro Date: Thu, 19 Mar 2020 11:57:50 +0100 Subject: [PATCH] Fix #1333: fix command execution --- e2e/test_support.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/test_support.go b/e2e/test_support.go index fcc73947e7..51e60529fa 100644 --- a/e2e/test_support.go +++ b/e2e/test_support.go @@ -923,7 +923,8 @@ func userCleanup() { userCmd := os.Getenv("KAMEL_TEST_CLEANUP") if userCmd != "" { fmt.Printf("Executing user cleanup command: %s\n", userCmd) - command := exec.Command(userCmd) + cmdSplit := strings.Split(userCmd, " ") + command := exec.Command(cmdSplit[0], cmdSplit[1:]...) command.Stderr = os.Stderr command.Stdout = os.Stdout if err := command.Run(); err != nil {