mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Amended TestExecParseError test
Usage string isn't printed anymore. User is adviced to see help instead - according to coreutils standard. Signed-off-by: Michal Minar <miminar@redhat.com>
This commit is contained in:
parent
8a785792cd
commit
1db927113f
1 changed files with 3 additions and 3 deletions
|
@ -362,10 +362,10 @@ func TestExecParseError(t *testing.T) {
|
|||
|
||||
// Test normal (non-detached) case first
|
||||
cmd := exec.Command(dockerBinary, "exec", "top")
|
||||
if out, _, err := runCommandWithOutput(cmd); err == nil || !strings.Contains(out, "Usage:") {
|
||||
t.Fatalf("Should have thrown error & given usage: %s", out)
|
||||
if _, stderr, code, err := runCommandWithStdoutStderr(cmd); err == nil || !strings.Contains(stderr, "See '"+dockerBinary+" exec --help'") || code == 0 {
|
||||
t.Fatalf("Should have thrown error & point to help: %s", stderr)
|
||||
}
|
||||
logDone("exec - error on parseExec should return usage")
|
||||
logDone("exec - error on parseExec should point to help")
|
||||
}
|
||||
|
||||
func TestExecStopNotHanging(t *testing.T) {
|
||||
|
|
Loading…
Reference in a new issue