From 7d99f7df0056ea450119a14767d17e818812e736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladimir=20T=C3=A1mara=20Pati=C3=B1o?= Date: Sat, 15 Mar 2025 13:35:10 -0400 Subject: [PATCH] cmd/utils: fix geth test issue on OpenBSD (#31357) --- cmd/utils/cmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 33c93c2cc6..d91d6ca5a8 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -63,8 +63,8 @@ var ErrImportInterrupted = errors.New("interrupted") // is redirected to a different file. func Fatalf(format string, args ...interface{}) { w := io.MultiWriter(os.Stdout, os.Stderr) - if runtime.GOOS == "windows" { - // The SameFile check below doesn't work on Windows. + if runtime.GOOS == "windows" || runtime.GOOS == "openbsd" { + // The SameFile check below doesn't work on Windows neither OpenBSD. // stdout is unlikely to get redirected though, so just print there. w = os.Stdout } else {