Skip to content

Commit 14a454c

Browse files
committed
Skip platform specific UT
1 parent 8a7c3a0 commit 14a454c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/os/system/api_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package system
22

33
import (
44
"fmt"
5+
"os"
6+
"strings"
57
"testing"
68
"time"
79

@@ -197,6 +199,10 @@ func TestGetDependentsForService_SkipsNonRunning(t *testing.T) {
197199
}
198200

199201
func TestGetDependenciesForService_Winmgmt(t *testing.T) {
202+
if strings.ToLower(os.Getenv("TEST_MULTI_SERVICE_DEPENDENTS")) != "true" {
203+
t.Skipf("Test skipped")
204+
}
205+
200206
impl := ServiceManagerImpl{
201207
serviceFactory: cim.Win32ServiceFactory{},
202208
}

0 commit comments

Comments
 (0)