mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Suppress output of TestLoginWithoutTTY
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
This commit is contained in:
parent
3076115e2c
commit
1cab340c10
1 changed files with 0 additions and 4 deletions
|
@ -3,16 +3,12 @@ package main
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoginWithoutTTY(t *testing.T) {
|
func TestLoginWithoutTTY(t *testing.T) {
|
||||||
cmd := exec.Command(dockerBinary, "login")
|
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
|
// create a buffer with text then a new line as a return
|
||||||
buf := bytes.NewBuffer([]byte("buffer test string \n"))
|
buf := bytes.NewBuffer([]byte("buffer test string \n"))
|
||||||
|
|
Loading…
Reference in a new issue