mirror of
https://github.com/docker/cli.git
synced 2026-09-28 02:06:53 -04:00
Improve consistency in "skip"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit a3948d17d330315c832112bfecfc15d5e19511b1) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: cdedf9ae3ef586a466bc34b9003def2a19c4b42c Component: engine
This commit is contained in:
@@ -29,7 +29,6 @@ import (
|
||||
func TestContainerStartOnDaemonRestart(t *testing.T) {
|
||||
skip.If(t, testEnv.IsRemoteDaemon, "cannot start daemon on remote test run")
|
||||
skip.If(t, testEnv.DaemonInfo.OSType == "windows")
|
||||
skip.If(t, testEnv.IsRemoteDaemon(), "cannot start daemon on remote test run")
|
||||
t.Parallel()
|
||||
|
||||
d := daemon.New(t)
|
||||
|
||||
@@ -58,7 +58,7 @@ func TestExportContainerAndImportImage(t *testing.T) {
|
||||
// condition, daemon restart is needed after container creation.
|
||||
func TestExportContainerAfterDaemonRestart(t *testing.T) {
|
||||
skip.If(t, testEnv.DaemonInfo.OSType == "windows")
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
|
||||
d := daemon.New(t)
|
||||
c := d.NewClientT(t)
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
func TestLinksEtcHostsContentMatch(t *testing.T) {
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
|
||||
hosts, err := ioutil.ReadFile("/etc/hosts")
|
||||
skip.If(t, os.IsNotExist(err))
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
// Makes sure that when following we don't get an EOF error when there are no logs
|
||||
func TestLogsFollowTailEmpty(t *testing.T) {
|
||||
// FIXME(vdemeester) fails on a e2e run on linux...
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
defer setupTest(t)()
|
||||
client := testEnv.APIClient()
|
||||
ctx := context.Background()
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
|
||||
func TestNetworkNat(t *testing.T) {
|
||||
skip.If(t, testEnv.OSType == "windows", "FIXME")
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
|
||||
defer setupTest(t)()
|
||||
|
||||
@@ -41,7 +41,7 @@ func TestNetworkNat(t *testing.T) {
|
||||
|
||||
func TestNetworkLocalhostTCPNat(t *testing.T) {
|
||||
skip.If(t, testEnv.DaemonInfo.OSType == "windows", "FIXME")
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
|
||||
defer setupTest(t)()
|
||||
|
||||
@@ -59,7 +59,7 @@ func TestNetworkLocalhostTCPNat(t *testing.T) {
|
||||
|
||||
func TestNetworkLoopbackNat(t *testing.T) {
|
||||
skip.If(t, testEnv.OSType == "windows", "FIXME")
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
|
||||
defer setupTest(t)()
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ func getPrefixAndSlashFromDaemonPlatform() (prefix, slash string) {
|
||||
|
||||
// Test case for #5244: `docker rm` fails if bind dir doesn't exist anymore
|
||||
func TestRemoveContainerWithRemovedVolume(t *testing.T) {
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
|
||||
defer setupTest(t)()
|
||||
ctx := context.Background()
|
||||
|
||||
@@ -190,7 +190,7 @@ func TestRenameContainerWithSameName(t *testing.T) {
|
||||
// of the linked container should be updated so that the other
|
||||
// container could still reference to the container that is renamed.
|
||||
func TestRenameContainerWithLinkedContainer(t *testing.T) {
|
||||
skip.If(t, testEnv.IsRemoteDaemon())
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
skip.If(t, testEnv.OSType == "windows", "FIXME")
|
||||
|
||||
defer setupTest(t)()
|
||||
|
||||
Reference in New Issue
Block a user