From be406ea5d460b3cff491ec9e75d5f990884d233f Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Sun, 27 Sep 2015 12:27:14 -0700 Subject: [PATCH] Fix args in test --- client/executor/exec_linux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/executor/exec_linux_test.go b/client/executor/exec_linux_test.go index 3d289e134..4ae59e8ad 100644 --- a/client/executor/exec_linux_test.go +++ b/client/executor/exec_linux_test.go @@ -96,7 +96,7 @@ func TestExecutorLinux_Start_Wait(t *testing.T) { expected := "hello world" file := filepath.Join(allocdir.TaskLocal, "output.txt") absFilePath := filepath.Join(taskDir, file) - cmd := fmt.Sprintf("%v \"%v\" > %v", "sleep 1 ; echo -n", expected, file) + cmd := fmt.Sprintf("\"%v \\\"%v\\\" > %v\"", "/bin/sleep 1 ; echo -n", expected, file) e := Command("/bin/bash", "-c", cmd) if err := e.Limit(constraint); err != nil {