Mercurial > hg
diff tests/test-globalopts.t @ 12316:4134686b83e1
tests: add exit codes to unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 16 Sep 2010 17:51:32 -0500 |
parents | 9e40ea08c2ab |
children | 02990e22150b |
line wrap: on
line diff
--- a/tests/test-globalopts.t Thu Sep 16 16:12:26 2010 -0500 +++ b/tests/test-globalopts.t Thu Sep 16 17:51:32 2010 -0500 @@ -60,10 +60,13 @@ 0: a $ hg ann a/a b/b abort: There is no Mercurial repository here (.hg not found)! + [255] $ hg -R b ann a/a abort: a/a not under root + [255] $ hg log abort: There is no Mercurial repository here (.hg not found)! + [255] Abbreviation of long option: @@ -103,16 +106,22 @@ $ hg --confi "foo.bar=baz" abort: option --config may not be abbreviated! + [255] $ hg --cw a tip abort: option --cwd may not be abbreviated! + [255] $ hg --rep a tip abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo! + [255] $ hg --repositor a tip abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo! + [255] $ hg -qR a tip abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo! + [255] $ hg -qRa tip abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo! + [255] Testing --cwd: @@ -179,14 +188,19 @@ quuxfoo $ hg --cwd c --config '' tip -q abort: malformed --config option: '' (use --config section.name=value) + [255] $ hg --cwd c --config a.b tip -q abort: malformed --config option: 'a.b' (use --config section.name=value) + [255] $ hg --cwd c --config a tip -q abort: malformed --config option: 'a' (use --config section.name=value) + [255] $ hg --cwd c --config a.= tip -q abort: malformed --config option: 'a.=' (use --config section.name=value) + [255] $ hg --cwd c --config .b= tip -q abort: malformed --config option: '.b=' (use --config section.name=value) + [255] Testing --debug: