21189: On usage error, exit 64 and do not auto-restart.
[arvados.git] / lib / cmd / cmd_test.go
index 2d03722adcc5a31fe1d535c1d213dcdc8e82e14d..b4ce7194c1e020e35ac2bf080a8ad66b95e46f60 100644 (file)
@@ -57,7 +57,7 @@ func (s *CmdSuite) TestUsage(c *check.C) {
        stdout := bytes.NewBuffer(nil)
        stderr := bytes.NewBuffer(nil)
        exited := testCmd.RunCommand("prog", []string{"nosuchcommand", "hi"}, bytes.NewReader(nil), stdout, stderr)
-       c.Check(exited, check.Equals, 2)
+       c.Check(exited, check.Equals, 64)
        c.Check(stdout.String(), check.Equals, "")
        c.Check(stderr.String(), check.Matches, `(?ms)^prog: unrecognized command "nosuchcommand"\n.*echo.*\n`)
 }