Fix args in test

This commit is contained in:
Alex Dadgar
2015-09-27 12:27:14 -07:00
parent 6d8a913242
commit be406ea5d4

View File

@@ -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 {