diff --git a/tests/ociswrapper/ocis/ocis.go b/tests/ociswrapper/ocis/ocis.go index 0ca824326..ca8befa1d 100644 --- a/tests/ociswrapper/ocis/ocis.go +++ b/tests/ociswrapper/ocis/ocis.go @@ -117,6 +117,10 @@ func Stop() (bool, string) { log.Println("Stopping oCIS server...") stopSignal = true + if cmd == nil { + return true, "oCIS server is not running" + } + err := cmd.Process.Signal(syscall.SIGINT) if err != nil { if !strings.HasSuffix(err.Error(), "process already finished") {