changeset 21996:947553944e92

test-run-tests.t: add tests for skips This will make some minor behavior changes in a future patch more obvious.
author Augie Fackler <raf@durin42.com>
date Tue, 29 Jul 2014 22:35:59 -0400
parents 20bfcb484554
children 93c3b3f55d59
files tests/test-run-tests.t
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-run-tests.t	Mon Jul 28 20:54:14 2014 -0400
+++ b/tests/test-run-tests.t	Tue Jul 29 22:35:59 2014 -0400
@@ -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]
+