test-run-tests.t: test selection of testfile from the command line
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 30 May 2014 12:11:39 -0700
changeset 21742 66f91859822b
parent 21741 02cd29156d5d
child 21743 d72bea858cbd
test-run-tests.t: test selection of testfile from the command line
tests/test-run-tests.t
--- a/tests/test-run-tests.t	Fri May 30 12:11:17 2014 -0700
+++ b/tests/test-run-tests.t	Fri May 30 12:11:39 2014 -0700
@@ -61,3 +61,30 @@
   # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
   python hash seed: * (glob)
   [1]
+
+Selecting Tests To Run
+======================
+
+successful
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` test-success.t
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+
+failed
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` test-failure.t
+  
+  --- $TESTTMP/test-failure.t
+  +++ $TESTTMP/test-failure.t.err
+  @@ -1,2 +1,2 @@
+     $ echo babar
+  -  rataxes
+  +  babar
+  
+  ERROR: test-failure.t output changed
+  !
+  Failed test-failure.t: output changed
+  # Ran 1 tests, 0 skipped, 0 warned, 1 failed.
+  python hash seed: * (glob)
+  [1]