Mercurial > public > mercurial-scm > hg-stable
diff tests/test-command-template.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 | 850e089eb41c |
children | 4fee1fd3de9a |
line wrap: on
line diff
--- a/tests/test-command-template.t Thu Sep 16 16:12:26 2010 -0500 +++ b/tests/test-command-template.t Thu Sep 16 17:51:32 2010 -0500 @@ -437,23 +437,27 @@ $ chmod 0 q $ hg log --style ./q abort: Permission denied: ./q + [255] Error if no style: $ hg log --style notexist abort: style not found: notexist + [255] Error if style missing key: $ echo 'q = q' > t $ hg log --style ./t abort: ./t: no key named 'changeset' + [255] Error if include fails: $ echo 'changeset = q' >> t $ hg log --style ./t abort: template file ./q: Permission denied + [255] Include works: @@ -1192,6 +1196,7 @@ $ echo 'x = "f' >> t $ hg log abort: t:3: unmatched quotes + [255] $ cd ..