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

login
register
mail settings
Submitter Pierre-Yves David
Date June 2, 2014, 7:54 p.m.
Message ID <15663bc0d4cc8faed1b1.1401738882@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/4919/
State Accepted
Commit 66f91859822b4100038de02e57b7b10d83db99e6
Headers show

Comments

Pierre-Yves David - June 2, 2014, 7:54 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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

Patch

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]