@@ -211,11 +211,11 @@ func TestFunction(t *testing.T, expectResPath string, masterHttpAddr string, gra
211211 time .Sleep (1 * time .Second )
212212
213213 fmt .Print ("killing master\n " )
214- output , err := exec .Command ("./ vermeer.sh" , "stop" , "master" ).Output ()
214+ output , err := exec .Command ("sh" , " vermeer.sh" , "stop" , "master" ).Output ()
215215 fmt .Println (string (output ))
216216 require .NoError (t , err )
217217 time .Sleep (3 * time .Second )
218- _ , err = exec .Command ("./ vermeer.sh" , "start" , "master" ).Output ()
218+ _ , err = exec .Command ("sh" , " vermeer.sh" , "start" , "master" ).Output ()
219219 require .NoError (t , err )
220220 time .Sleep (1 * time .Second )
221221 isAvailable := false
@@ -265,10 +265,10 @@ func TestFunction(t *testing.T, expectResPath string, masterHttpAddr string, gra
265265 fmt .Print ("kill master recover success\n " )
266266
267267 fmt .Print ("killing worker\n " )
268- _ , err = exec .Command ("./ vermeer.sh" , "stop" , "worker" ).Output ()
268+ _ , err = exec .Command ("sh" , " vermeer.sh" , "stop" , "worker" ).Output ()
269269 require .NoError (t , err )
270270 time .Sleep (5 * time .Second )
271- _ , err = exec .Command ("./ vermeer.sh" , "start" , "worker" ).Output ()
271+ _ , err = exec .Command ("sh" , " vermeer.sh" , "start" , "worker" ).Output ()
272272 require .NoError (t , err )
273273 isAvailable = false
274274 for i := 0 ; i < 10 ; i ++ {
0 commit comments