Skip to content

Commit 2af6c71

Browse files
committed
Use //go:build !windows to exclude tests
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent 3690352 commit 2af6c71

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pkg/autostart/launchd/launchd_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1+
//go:build !windows
2+
13
// SPDX-FileCopyrightText: Copyright The Lima Authors
24
// SPDX-License-Identifier: Apache-2.0
35

46
package launchd
57

68
import (
7-
"runtime"
89
"strings"
910
"testing"
1011

1112
"gotest.tools/v3/assert"
1213
)
1314

1415
func TestGetPlistPath(t *testing.T) {
15-
if runtime.GOOS == "windows" {
16-
t.Skip("skipping testing on windows host")
17-
}
1816
tests := []struct {
1917
Name string
2018
InstanceName string

pkg/autostart/systemd/systemd_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1+
//go:build !windows
2+
13
// SPDX-FileCopyrightText: Copyright The Lima Authors
24
// SPDX-License-Identifier: Apache-2.0
35

46
package systemd
57

68
import (
7-
"runtime"
89
"strings"
910
"testing"
1011

1112
"gotest.tools/v3/assert"
1213
)
1314

1415
func TestGetUnitPath(t *testing.T) {
15-
if runtime.GOOS == "windows" {
16-
t.Skip("skipping testing on windows host")
17-
}
1816
tests := []struct {
1917
Name string
2018
InstanceName string

0 commit comments

Comments
 (0)