21189: On usage error, exit 64 and do not auto-restart.
[arvados.git] / lib / cmd / cmd_test.go
index 2fc50985f194c8caa2e7ba332ce7d94bfb7189c9..b4ce7194c1e020e35ac2bf080a8ad66b95e46f60 100644 (file)
@@ -12,7 +12,7 @@ import (
        "strings"
        "testing"
 
-       "git.curoverse.com/arvados.git/lib/cmdtest"
+       "git.arvados.org/arvados.git/lib/cmdtest"
        check "gopkg.in/check.v1"
 )
 
@@ -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`)
 }