|
@@ -1,7 +1,6 @@
|
|
|
package main
|
|
|
|
|
|
import (
|
|
|
- "fmt"
|
|
|
"os/exec"
|
|
|
"strings"
|
|
|
"testing"
|
|
@@ -11,10 +10,8 @@ import (
|
|
|
func TestInfoEnsureSucceeds(t *testing.T) {
|
|
|
versionCmd := exec.Command(dockerBinary, "info")
|
|
|
out, exitCode, err := runCommandWithOutput(versionCmd)
|
|
|
- errorOut(err, t, fmt.Sprintf("encountered error while running docker info: %v", err))
|
|
|
-
|
|
|
if err != nil || exitCode != 0 {
|
|
|
- t.Fatal("failed to execute docker info")
|
|
|
+ t.Fatal("failed to execute docker info: %s, %v", out, err)
|
|
|
}
|
|
|
|
|
|
stringsToCheck := []string{"Containers:", "Execution Driver:", "Kernel Version:"}
|