Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
| ... | ... |
@@ -3,16 +3,12 @@ package main |
| 3 | 3 |
import ( |
| 4 | 4 |
"bytes" |
| 5 | 5 |
"io" |
| 6 |
- "os" |
|
| 7 | 6 |
"os/exec" |
| 8 | 7 |
"testing" |
| 9 | 8 |
) |
| 10 | 9 |
|
| 11 | 10 |
func TestLoginWithoutTTY(t *testing.T) {
|
| 12 | 11 |
cmd := exec.Command(dockerBinary, "login") |
| 13 |
- // setup STDOUT and STDERR so that we see any output and errors in our console |
|
| 14 |
- cmd.Stdout = os.Stdout |
|
| 15 |
- cmd.Stderr = os.Stderr |
|
| 16 | 12 |
|
| 17 | 13 |
// create a buffer with text then a new line as a return |
| 18 | 14 |
buf := bytes.NewBuffer([]byte("buffer test string \n"))
|