提交 919c9d9d 编写于 作者: N Nicholas Goozeff

Remove extra debug logging for mount command.

上级 21f7e60a
......@@ -20,7 +20,6 @@ package integration
import (
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
......@@ -56,10 +55,7 @@ func testMounting(t *testing.T) {
} else {
mountCmd = fmt.Sprintf("mount %s:/mount-9p", tempDir)
}
if testing.Verbose() {
fmt.Fprintf(os.Stderr, "runing mount cmd: %s\n", mountCmd)
}
cmd, out, serr := minikubeRunner.RunDaemon2(mountCmd)
cmd, _, _ := minikubeRunner.RunDaemon2(mountCmd)
defer func() {
err := cmd.Process.Kill()
if err != nil {
......@@ -67,11 +63,6 @@ func testMounting(t *testing.T) {
}
}()
if testing.Verbose() {
go io.Copy(os.Stderr, out)
go io.Copy(os.Stderr, serr)
}
kubectlRunner := util.NewKubectlRunner(t)
podName := "busybox-mount"
podPath, _ := filepath.Abs("testdata/busybox-mount-test.yaml")
......@@ -138,7 +129,7 @@ func testMounting(t *testing.T) {
statCmd := fmt.Sprintf("stat /mount-9p/%s", file)
statOutput, err := minikubeRunner.SSH(statCmd)
if err != nil {
t.Fatalf("%v", err)
t.Fatalf("Unable to stat %s via SSH. error %v, %s", file, err, statOutput)
}
if runtime.GOOS == "windows" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册