mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Cleanup errorOut resp in version tests
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
f013506aad
commit
50c3e7537c
1 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -10,11 +9,9 @@ import (
|
||||||
// ensure docker version works
|
// ensure docker version works
|
||||||
func TestVersionEnsureSucceeds(t *testing.T) {
|
func TestVersionEnsureSucceeds(t *testing.T) {
|
||||||
versionCmd := exec.Command(dockerBinary, "version")
|
versionCmd := exec.Command(dockerBinary, "version")
|
||||||
out, exitCode, err := runCommandWithOutput(versionCmd)
|
out, _, err := runCommandWithOutput(versionCmd)
|
||||||
errorOut(err, t, fmt.Sprintf("encountered error while running docker version: %v", err))
|
if err != nil {
|
||||||
|
t.Fatal("failed to execute docker version: %s, %v", out, err)
|
||||||
if err != nil || exitCode != 0 {
|
|
||||||
t.Fatal("failed to execute docker version")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stringsToCheck := []string{
|
stringsToCheck := []string{
|
||||||
|
|
Loading…
Reference in a new issue