Ver Fonte

integration/daemon: use "windows" to skip tests

For consistency, and to allow easier grepping for all tests
that we skip on windows.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn há 3 anos atrás
pai
commit
040b1d5eeb
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      integration/daemon/daemon_test.go

+ 3 - 3
integration/daemon/daemon_test.go

@@ -23,7 +23,7 @@ import (
 )
 
 func TestConfigDaemonLibtrustID(t *testing.T) {
-	skip.If(t, runtime.GOOS != "linux")
+	skip.If(t, runtime.GOOS == "windows")
 
 	d := daemon.New(t)
 	defer d.Stop(t)
@@ -42,7 +42,7 @@ func TestConfigDaemonLibtrustID(t *testing.T) {
 }
 
 func TestDaemonConfigValidation(t *testing.T) {
-	skip.If(t, runtime.GOOS != "linux")
+	skip.If(t, runtime.GOOS == "windows")
 
 	d := daemon.New(t)
 	dockerBinary, err := d.BinaryPath()
@@ -108,7 +108,7 @@ func TestDaemonConfigValidation(t *testing.T) {
 }
 
 func TestConfigDaemonSeccompProfiles(t *testing.T) {
-	skip.If(t, runtime.GOOS != "linux")
+	skip.If(t, runtime.GOOS == "windows")
 
 	d := daemon.New(t)
 	defer d.Stop(t)