提交 c745cc46 编写于 作者: M Medya Gh

add sudo to systemctl commands

上级 9634132a
......@@ -42,7 +42,7 @@ func TestDockerFlags(t *testing.T) {
t.Errorf("%s failed: %v", rr.Args, err)
}
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "systemctl show docker --property=Environment --no-pager"))
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "sudo systemctl show docker --property=Environment --no-pager"))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
......@@ -53,7 +53,7 @@ func TestDockerFlags(t *testing.T) {
}
}
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "systemctl show docker --property=ExecStart --no-pager"))
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "sudo systemctl show docker --property=ExecStart --no-pager"))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册