mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00
tstest/integration: fix running with -verbose-tailscale
Without this fix, any run with -verbose-tailscale fails. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
c8829b742b
commit
a5235e165c
@ -700,8 +700,11 @@ func (n *testNode) MustUp(extraArgs ...string) {
|
|||||||
"--login-server=" + n.env.ControlServer.URL,
|
"--login-server=" + n.env.ControlServer.URL,
|
||||||
}
|
}
|
||||||
args = append(args, extraArgs...)
|
args = append(args, extraArgs...)
|
||||||
t.Logf("Running %v ...", args)
|
cmd := n.Tailscale(args...)
|
||||||
if b, err := n.Tailscale(args...).CombinedOutput(); err != nil {
|
t.Logf("Running %v ...", cmd)
|
||||||
|
cmd.Stdout = nil // in case --verbose-tailscale was set
|
||||||
|
cmd.Stderr = nil // in case --verbose-tailscale was set
|
||||||
|
if b, err := cmd.CombinedOutput(); err != nil {
|
||||||
t.Fatalf("up: %v, %v", string(b), err)
|
t.Fatalf("up: %v, %v", string(b), err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user