Files
odo/tests/helper/helper_nowindows.go
Philippe Martin 0f828ec99f Ignore devstate when existing process name is not odo + delete devstate files with odo delete component (#7090)
* Ignore devstate when existing process name is not odo

* Delete orphan devstate files with odo delete component

* Update unit tests

* Create fake system

* Add unit tests for odo delete component

* Integration tests for odo dev

* Troubleshooting

* First process on Windows is 4

* Use go-ps lib for pidExists
2023-09-20 14:20:53 +02:00

22 lines
283 B
Go

//go:build !windows
// +build !windows
package helper
import (
"os/exec"
"github.com/onsi/gomega/gexec"
)
func terminateProc(session *gexec.Session) error {
session.Interrupt()
return nil
}
func setSysProcAttr(command *exec.Cmd) {}
func GetFirstProcess() int {
return 1
}