tests: exit 0 no longer needed on unified tests
authorMatt Mackall <mpm@selenic.com>
Fri, 17 Sep 2010 17:03:04 -0500
changeset 12327 92e30e135581c5b2cdee7bb8ee0fe6ae95458aaf
parent 12326 9d932e8e95463dff9626e467e277c659d7c13d83
child 12328 b63f6422d2a758000591cd7a7e64809a4162683c
push id1
push usergszorc@mozilla.com
push dateWed, 18 Mar 2015 16:34:57 +0000
tests: exit 0 no longer needed on unified tests
tests/test-abort-checkin.t
tests/test-alias.t
tests/test-archive.t
tests/test-audit-path.t
tests/test-backout.t
tests/test-commit-unresolved.t
tests/test-commit.t
tests/test-copy2.t
tests/test-debugcomplete.t
tests/test-dispatch.t
tests/test-dumprevlog.t
tests/test-extension.t
tests/test-hook.t
tests/test-issue322.t
tests/test-journal-exists.t
tests/test-log.t
tests/test-remove-new.t
tests/test-subrepo-deep-nested-change.t
tests/test-subrepo-paths.t
tests/test-subrepo-relative-path.t
tests/test-subrepo.t
tests/test-tags.t
tests/test-verify.t
--- a/tests/test-abort-checkin.t
+++ b/tests/test-abort-checkin.t
@@ -26,10 +26,8 @@ called and .hg/journal.dirstate will not
   abort: no commits allowed
   [255]
   $ hg ci -m foo
   error: pretxncommit.nocommits hook failed: no commits allowed
   transaction abort!
   rollback completed
   abort: no commits allowed
   [255]
-
-  $ exit 0
--- a/tests/test-alias.t
+++ b/tests/test-alias.t
@@ -193,10 +193,8 @@ invalid arguments
   print the root (top) of the current working directory
   
       Print the root directory of the current repository.
   
       Returns 0 on success.
   
   use "hg -v help rt" to show global options
   [255]
-
-  $ exit 0
--- a/tests/test-archive.t
+++ b/tests/test-archive.t
@@ -228,10 +228,8 @@ old file -- date clamped to 1980
   $ unzip -l ../old.zip
   Archive:  ../old.zip
     Length      Date    Time    Name
   ---------  ---------- -----   ----
         147  1980-01-01 00:00   old/.hg_archival.txt
           0  1980-01-01 00:00   old/old
   ---------                     -------
         147                     2 files
-
-  $ exit 0
--- a/tests/test-audit-path.t
+++ b/tests/test-audit-path.t
@@ -75,10 +75,8 @@ attack ../test
 
 attack /tmp/test
 
   $ hg manifest -r4
   /tmp/test
   $ hg update -Cr4
   abort: No such file or directory: .*/test-audit-path.t/target//tmp/test
   [255]
-
-  $ exit 0
--- a/tests/test-backout.t
+++ b/tests/test-backout.t
@@ -254,10 +254,8 @@ on branch1, so no file1 and file2:
 
   $ hg co -C branch1
   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   $ hg id
   bf1602f437f3 (branch1)
   $ hg st -A
   C default
   C file1
-
-  $ exit 0
--- a/tests/test-commit-unresolved.t
+++ b/tests/test-commit-unresolved.t
@@ -40,10 +40,8 @@ Correct the conflict without marking the
   $ hg commit -m "Merged"
   abort: unresolved merge conflicts (see hg resolve)
   [255]
 
 Mark the conflict as resolved and commit
 
   $ hg resolve -m A
   $ hg commit -m "Merged"
-
-  $ exit 0
--- a/tests/test-commit.t
+++ b/tests/test-commit.t
@@ -260,11 +260,8 @@ test commit message content
   HG: --
   HG: user: test
   HG: branch 'default'
   HG: added added
   HG: changed changed
   HG: removed removed
   abort: empty commit message
   [255]
-  $ cd ..
-
-  $ exit 0
--- a/tests/test-copy2.t
+++ b/tests/test-copy2.t
@@ -95,10 +95,8 @@ copy --after on an added file
 foo was clean:
   $  hg st -AC foo
   C foo
 but it's considered modified after a copy --after --force
   $ hg copy -Af bar foo
   $ hg st -AC foo
   M foo
     bar
-
-  $ exit 0
--- a/tests/test-debugcomplete.t
+++ b/tests/test-debugcomplete.t
@@ -242,10 +242,8 @@ Show all commands + options
   root: 
   showconfig: untrusted
   tag: force, local, rev, remove, edit, message, date, user
   tags: 
   tip: patch, git, style, template
   unbundle: update
   verify: 
   version: 
-
-  $ exit 0
--- a/tests/test-dispatch.t
+++ b/tests/test-dispatch.t
@@ -59,10 +59,8 @@ Missing arg:
 
 No repo:
 
   $ cd $dir
   $ hg cat
   abort: There is no Mercurial repository here (.hg not found)!
   [255]
 
-  $ exit 0
-
--- a/tests/test-dumprevlog.t
+++ b/tests/test-dumprevlog.t
@@ -100,10 +100,8 @@ Compare repos:
   [1]
 
   $ hg -R repo-a incoming repo-c
   comparing with repo-c
   searching for changes
   no changes found
   [1]
 
-  $ exit 0
-
--- a/tests/test-extension.t
+++ b/tests/test-extension.t
@@ -313,11 +313,8 @@ Broken disabled extension and command:
   $ hg --config extensions.path=./path.py help broken
   broken extension - (no help text available)
   
   use "hg help extensions" for information on enabling extensions
 
   $ hg --config extensions.path=./path.py help foo > /dev/null
   hg: unknown command 'foo'
   [255]
-
-  $ exit 0
-
--- a/tests/test-hook.t
+++ b/tests/test-hook.t
@@ -474,9 +474,8 @@
   $ echo 'update = hg id' >> .hg/hgrc
   $ echo bb > a
   $ hg ci -ma
   223eafe2750c tip
   $ hg up 0
   cb9a9f314b8b
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
-  $ exit 0
--- a/tests/test-issue322.t
+++ b/tests/test-issue322.t
@@ -52,10 +52,8 @@ Directory replaced with file:
   $ echo a > b
 
 Should fail - would corrupt dirstate:
 
   $ hg add b
   abort: directory 'b' already in dirstate
   [255]
 
-  $ exit 0
-
--- a/tests/test-journal-exists.t
+++ b/tests/test-journal-exists.t
@@ -27,10 +27,8 @@ Check that zero-size journals are correc
 
   $ hg -R foo unbundle repo.hg
   adding changesets
   abort: Permission denied: .*
   [255]
 
   $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
 
-  $ exit 0
-
--- a/tests/test-log.t
+++ b/tests/test-log.t
@@ -1015,10 +1015,8 @@ log -p -R repo
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     create foo, related
   
   changeset:   4:88176d361b69
   user:        test
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     add foo, related
   
-
-  $ exit 0
--- a/tests/test-remove-new.t
+++ b/tests/test-remove-new.t
@@ -6,9 +6,8 @@ test that 'hg commit' does not crash if 
   $ hg commit -m "commit #0"
   $ touch b
   $ hg add b
   $ rm b
   $ hg commit -A -m"comment #1"
   removing b
   nothing changed
   [1]
-  $ exit 0
--- a/tests/test-subrepo-deep-nested-change.t
+++ b/tests/test-subrepo-deep-nested-change.t
@@ -110,10 +110,8 @@ debugsub output for main and sub1
   $ hg debugsub -R cloned
   path sub1
    source   ../sub1
    revision 2ecb03bf44a94e749e8669481dd9069526ce7cb9
   $ hg debugsub -R cloned/sub1
   path sub2
    source   ../sub2
    revision 53dd3430bcaf5ab4a7c48262bcad6d441f510487
-
-  $ exit 0
--- a/tests/test-subrepo-paths.t
+++ b/tests/test-subrepo-paths.t
@@ -25,10 +25,8 @@ test bad subpaths pattern
 
   $ cat > .hg/hgrc <<EOF
   > [subpaths]
   > .* = \1
   > EOF
   $ hg debugsub
   abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
   [255]
-
-  $ exit 0
--- a/tests/test-subrepo-relative-path.t
+++ b/tests/test-subrepo-relative-path.t
@@ -62,10 +62,8 @@ Checking cloned repo ids
 subrepo debug for 'main' clone
 
   $ hg debugsub -R cloned
   path sub
    source   ../sub
    revision 863c1745b441bd97a8c4a096e87793073f4fb215
 
   $ "$TESTDIR/killdaemons.py"
-
-  $ exit 0
--- a/tests/test-subrepo.t
+++ b/tests/test-subrepo.t
@@ -579,10 +579,8 @@ issue 1977
   committing subrepository s
   $ hg -q -R repo2 push
   abort: push creates new remote heads on branch 'default'!
   (did you forget to merge? use push -f to force)
   [255]
   $ hg -R repo update
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ rm -rf repo2 repo
-
-  $ exit 0
--- a/tests/test-tags.t
+++ b/tests/test-tags.t
@@ -363,9 +363,8 @@ to remove a tag of type X which actually
   $ hg tag -r 0 globaltag
   $ hg tag --remove -l globaltag
   abort: tag 'globaltag' is not a local tag
   [255]
   $ hg tags -v
   tip                                1:a0b6fe111088
   localtag                           0:bbd179dfa0a7 local
   globaltag                          0:bbd179dfa0a7
-  $ exit 0
--- a/tests/test-verify.t
+++ b/tests/test-verify.t
@@ -94,10 +94,8 @@ test revlog format 0
   $ cd formatv0
   $ hg verify
   repository uses revlog format 0
   checking changesets
   checking manifests
   crosschecking files in changesets and manifests
   checking files
   1 files, 1 changesets, 1 total revisions
-
-  $ exit 0