Merge pull request #9624 from icecrime/silence_loginwithouttty_test

Suppress output of TestLoginWithoutTTY
This commit is contained in:
Alexander Morozov 2014-12-11 18:26:58 -08:00
Родитель 14a82de6fa 1cab340c10
Коммит a07835d876
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -3,16 +3,12 @@ package main
import (
"bytes"
"io"
"os"
"os/exec"
"testing"
)
func TestLoginWithoutTTY(t *testing.T) {
cmd := exec.Command(dockerBinary, "login")
// setup STDOUT and STDERR so that we see any output and errors in our console
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
// create a buffer with text then a new line as a return
buf := bytes.NewBuffer([]byte("buffer test string \n"))