--- a/tests/test-run-tests.t Tue Jul 29 22:35:59 2014 -0400
+++ b/tests/test-run-tests.t Mon Jul 28 19:48:59 2014 -0400
@@ -66,7 +66,7 @@
ERROR: test-failure.t output changed
!
Failed test-failure.t: output changed
- # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
+ # Ran 2 tests, 1 skipped, 0 warned, 1 failed.
python hash seed: * (glob)
[1]
@@ -79,6 +79,11 @@
.
# Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+success w/ keyword
+ $ $TESTDIR/run-tests.py --with-hg=`which hg` -k xyzzy
+ i.
+ # Ran 1 tests, 1 skipped, 0 warned, 0 failed.
+
failed
$ $TESTDIR/run-tests.py --with-hg=`which hg` test-failure.t
@@ -99,6 +104,25 @@
python hash seed: * (glob)
[1]
+failure w/ keyword
+ $ $TESTDIR/run-tests.py --with-hg=`which hg` -k rataxes
+ i
+ --- $TESTTMP/test-failure.t
+ +++ $TESTTMP/test-failure.t.err
+ @@ -1,4 +1,4 @@
+ $ echo babar
+ - rataxes
+ + babar
+ This is a noop statement so that
+ this test is still more bytes than success.
+
+ ERROR: test-failure.t output changed
+ !
+ Failed test-failure.t: output changed
+ # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
+ python hash seed: * (glob)
+ [1]
+
Running In Debug Mode
======================
@@ -262,3 +286,17 @@
python hash seed: * (glob)
[1]
+ $ $TESTDIR/run-tests.py --with-hg=`which hg` --keyword xyzzy
+ i.s
+ Skipped test-skip.t: irrelevant
+ # Ran 1 tests, 2 skipped, 0 warned, 0 failed.
+
+Missing skips or blacklisted skips don't count as executed:
+ $ echo test-failure.t > blacklist
+ $ $TESTDIR/run-tests.py --with-hg=`which hg` --blacklist=blacklist \
+ > test-failure.t test-bogus.t
+ ss
+ Skipped test-bogus.t: Doesn't exist
+ Skipped test-failure.t: blacklisted
+ # Ran 0 tests, 2 skipped, 0 warned, 0 failed.
+