[PATCH 07 of 11 FOR-REFERENCE] test-run-tests.t: test selection of testfile from the command line

pierre-yves.david at ens-lyon.org pierre-yves.david at ens-lyon.org
Mon Jun 2 14:54:42 CDT 2014


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1401477099 25200
#      Fri May 30 12:11:39 2014 -0700
# Node ID 15663bc0d4cc8faed1b10d0938c9361cd138009b
# Parent  760fc63f9f5da9b37dd4a9effd5a315260426143
test-run-tests.t: test selection of testfile from the command line

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
@@ -59,5 +59,32 @@ test for --retest
   !
   Failed test-failure.t: output changed
   # 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]


More information about the Mercurial-devel mailing list