[PATCH 2 of 3] test-run-tests.t: add tests for skips

Augie Fackler raf at durin42.com
Tue Aug 5 10:22:32 CDT 2014


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1406687759 14400
#      Tue Jul 29 22:35:59 2014 -0400
# Node ID 90e315e934033502c91853ab6539f2c30dbf93d3
# Parent  ad790b3574a52375f62a628d0dab2892b229e3fe
test-run-tests.t: add tests for skips

This will make some minor behavior changes in a future patch more obvious.

diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -247,3 +247,18 @@
   # Producing time report
   cuser   csys    real      Test
   \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   test-success.t (re)
+
+Skips
+================
+  $ cat > test-skip.t <<EOF
+  >   $ echo xyzzy
+  >   $ exit 80
+  > EOF
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` --nodiff
+  !.s
+  Skipped test-skip.t: irrelevant
+  Failed test-failure.t: output changed
+  # Ran 2 tests, 1 skipped, 0 warned, 1 failed.
+  python hash seed: * (glob)
+  [1]
+


More information about the Mercurial-devel mailing list