Use soft shutdown when running tests

This commit is contained in:
Jakob Borg 2015-07-20 15:05:15 +02:00
parent 1836ef2884
commit 7d3257b222

View File

@ -129,7 +129,7 @@ func (p *Process) Stop() (*os.ProcessState, error) {
p.stop = true
p.eventMut.Unlock()
if err := p.cmd.Process.Signal(os.Kill); err != nil {
if _, err := p.Post("/rest/system/shutdown", nil); err != nil {
return nil, err
}
p.cmd.Wait()