瀏覽代碼

integ-cli: Skip some exec tests requiring same-host daemon

This skips tests:
- `TestRunExecDir`
- `TestRunMutableNetworkFiles`

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
Ahmet Alp Balkan 10 年之前
父節點
當前提交
e6f88f091d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      integration-cli/docker_cli_exec_test.go

+ 2 - 0
integration-cli/docker_cli_exec_test.go

@@ -529,6 +529,7 @@ func TestLinksPingLinkedContainersOnRename(t *testing.T) {
 }
 }
 
 
 func TestRunExecDir(t *testing.T) {
 func TestRunExecDir(t *testing.T) {
+	testRequires(t, SameHostDaemon)
 	cmd := exec.Command(dockerBinary, "run", "-d", "busybox", "top")
 	cmd := exec.Command(dockerBinary, "run", "-d", "busybox", "top")
 	out, _, err := runCommandWithOutput(cmd)
 	out, _, err := runCommandWithOutput(cmd)
 	if err != nil {
 	if err != nil {
@@ -629,6 +630,7 @@ func TestRunExecDir(t *testing.T) {
 }
 }
 
 
 func TestRunMutableNetworkFiles(t *testing.T) {
 func TestRunMutableNetworkFiles(t *testing.T) {
+	testRequires(t, SameHostDaemon)
 	defer deleteAllContainers()
 	defer deleteAllContainers()
 
 
 	for _, fn := range []string{"resolv.conf", "hosts"} {
 	for _, fn := range []string{"resolv.conf", "hosts"} {