mirror of
https://github.com/ddworken/hishtory.git
synced 2025-03-30 18:48:29 +02:00
Windows: Disable killall on windows
This commit is contained in:
parent
fadc8ad70e
commit
f4925a0999
@ -89,10 +89,12 @@ func BackupAndRestoreWithId(t *testing.T, id string) func() {
|
|||||||
for _, file := range copyFiles {
|
for _, file := range copyFiles {
|
||||||
checkError(copy(getBackPath(file, id), file))
|
checkError(copy(getBackPath(file, id), file))
|
||||||
}
|
}
|
||||||
cmd := exec.Command("killall", "hishtory")
|
if runtime.GOOS != "windows" {
|
||||||
stdout, err := cmd.Output()
|
cmd := exec.Command("killall", "hishtory")
|
||||||
if err != nil && err.Error() != "exit status 1" {
|
stdout, err := cmd.Output()
|
||||||
t.Fatalf("failed to execute killall hishtory, stdout=%#v: %v", string(stdout), err)
|
if err != nil && err.Error() != "exit status 1" {
|
||||||
|
t.Fatalf("failed to execute killall hishtory, stdout=%#v: %v", string(stdout), err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
checkError(os.Chdir(initialWd))
|
checkError(os.Chdir(initialWd))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user