Browse Source

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 3 years ago
parent
commit
040b1d5eeb
1 changed files with 3 additions and 3 deletions
  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) {
 func TestConfigDaemonLibtrustID(t *testing.T) {
-	skip.If(t, runtime.GOOS != "linux")
+	skip.If(t, runtime.GOOS == "windows")
 
 
 	d := daemon.New(t)
 	d := daemon.New(t)
 	defer d.Stop(t)
 	defer d.Stop(t)
@@ -42,7 +42,7 @@ func TestConfigDaemonLibtrustID(t *testing.T) {
 }
 }
 
 
 func TestDaemonConfigValidation(t *testing.T) {
 func TestDaemonConfigValidation(t *testing.T) {
-	skip.If(t, runtime.GOOS != "linux")
+	skip.If(t, runtime.GOOS == "windows")
 
 
 	d := daemon.New(t)
 	d := daemon.New(t)
 	dockerBinary, err := d.BinaryPath()
 	dockerBinary, err := d.BinaryPath()
@@ -108,7 +108,7 @@ func TestDaemonConfigValidation(t *testing.T) {
 }
 }
 
 
 func TestConfigDaemonSeccompProfiles(t *testing.T) {
 func TestConfigDaemonSeccompProfiles(t *testing.T) {
-	skip.If(t, runtime.GOOS != "linux")
+	skip.If(t, runtime.GOOS == "windows")
 
 
 	d := daemon.New(t)
 	d := daemon.New(t)
 	defer d.Stop(t)
 	defer d.Stop(t)