mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b430f4f45b
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
20 lines
539 B
Go
20 lines
539 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os/exec"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestImportDisplay(t *testing.T) {
|
|
importCmd := exec.Command(dockerBinary, "import", "https://github.com/ewindisch/docker-cirros/raw/master/cirros-0.3.0-x86_64-lxc.tar.gz")
|
|
out, _, err := runCommandWithOutput(importCmd)
|
|
errorOut(err, t, fmt.Sprintf("import failed with errors: %v", err))
|
|
|
|
if n := len(strings.Split(out, "\n")); n != 3 {
|
|
t.Fatalf("display is messed up: %d '\\n' instead of 3", n)
|
|
}
|
|
|
|
logDone("import - cirros was imported and display is fine")
|
|
}
|