do not merge -i or -t options · ikaros/docker@2c8b63c · GitHub
Skip to content

Commit 2c8b63c

Browse files
committed
do not merge -i or -t options
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
1 parent 366f084 commit 2c8b63c

3 files changed

Lines changed: 28 additions & 39 deletions

File tree

integration-cli/docker_cli_commit_test.go

Lines changed: 21 additions & 0 deletions

integration/commands_test.go

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ package docker
33
import (
44
"bufio"
55
"fmt"
6-
"github.com/dotcloud/docker/api/client"
7-
"github.com/dotcloud/docker/daemon"
8-
"github.com/dotcloud/docker/engine"
9-
"github.com/dotcloud/docker/image"
10-
"github.com/dotcloud/docker/pkg/term"
11-
"github.com/dotcloud/docker/utils"
126
"io"
137
"io/ioutil"
148
"os"
@@ -19,6 +13,13 @@ import (
1913
"syscall"
2014
"testing"
2115
"time"
16+
17+
"github.com/dotcloud/docker/api/client"
18+
"github.com/dotcloud/docker/daemon"
19+
"github.com/dotcloud/docker/engine"
20+
"github.com/dotcloud/docker/image"
21+
"github.com/dotcloud/docker/pkg/term"
22+
"github.com/dotcloud/docker/utils"
2223
)
2324

2425
func closeWrap(args ...io.Closer) error {
@@ -1163,27 +1164,3 @@ func TestCmdKill(t *testing.T) {
11631164

11641165
closeWrap(stdin, stdinPipe, stdout, stdoutPipe)
11651166
}
1166-
1167-
func TestRunTTYCommitRun(t *testing.T) {
1168-
cli := api.NewDockerCli(nil, ioutil.Discard, ioutil.Discard, testDaemonProto, testDaemonAddr, nil)
1169-
1170-
defer cleanup(globalEngine, t)
1171-
1172-
ch := make(chan struct{})
1173-
go func() {
1174-
defer close(ch)
1175-
cli.CmdRun("-t", unitTestImageID, "/bin/ls")
1176-
}()
1177-
1178-
container := waitContainerStart(t, 10*time.Second)
1179-
time.Sleep(500 * time.Millisecond)
1180-
setTimeout(t, "Waiting for container timedout", 5*time.Second, func() {
1181-
<-ch
1182-
})
1183-
1184-
cli.CmdCommit(container.ID, "ttytest")
1185-
1186-
if err := cli.CmdRun("ttytest", "/bin/ls"); err != nil {
1187-
t.Fatal(err)
1188-
}
1189-
}

runconfig/merge.go

Lines changed: 0 additions & 9 deletions

0 commit comments

Comments
 (0)