mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #4930 from vieux/fix_regression_import
Fix regression import
This commit is contained in:
20
integration-cli/docker_cli_import_test.go
Normal file
20
integration-cli/docker_cli_import_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user