Mercurial > hg
comparison tests/test-run-tests.t @ 22107:3b5cf39ffcc4
run-tests: don't show 'i' for tests that don't match a keyword
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 00:33:48 -0500 |
parents | 769198c6a62d |
children | ccae572c5d09 |
comparison
equal
deleted
inserted
replaced
22104:70bdf59d27b6 | 22107:3b5cf39ffcc4 |
---|---|
112 . | 112 . |
113 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. | 113 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
114 | 114 |
115 success w/ keyword | 115 success w/ keyword |
116 $ $TESTDIR/run-tests.py --with-hg=`which hg` -k xyzzy | 116 $ $TESTDIR/run-tests.py --with-hg=`which hg` -k xyzzy |
117 i. | 117 . |
118 # Ran 1 tests, 1 skipped, 0 warned, 0 failed. | 118 # Ran 2 tests, 1 skipped, 0 warned, 0 failed. |
119 | 119 |
120 failed | 120 failed |
121 | 121 |
122 $ $TESTDIR/run-tests.py --with-hg=`which hg` test-failure.t | 122 $ $TESTDIR/run-tests.py --with-hg=`which hg` test-failure.t |
123 | 123 |
137 python hash seed: * (glob) | 137 python hash seed: * (glob) |
138 [1] | 138 [1] |
139 | 139 |
140 failure w/ keyword | 140 failure w/ keyword |
141 $ $TESTDIR/run-tests.py --with-hg=`which hg` -k rataxes | 141 $ $TESTDIR/run-tests.py --with-hg=`which hg` -k rataxes |
142 i | 142 |
143 --- $TESTTMP/test-failure.t | 143 --- $TESTTMP/test-failure.t |
144 +++ $TESTTMP/test-failure.t.err | 144 +++ $TESTTMP/test-failure.t.err |
145 @@ -1,4 +1,4 @@ | 145 @@ -1,4 +1,4 @@ |
146 $ echo babar | 146 $ echo babar |
147 - rataxes | 147 - rataxes |
148 + babar | 148 + babar |
149 This is a noop statement so that | 149 This is a noop statement so that |
150 this test is still more bytes than success. | 150 this test is still more bytes than success. |
151 | 151 |
152 ERROR: test-failure.t output changed | 152 ERROR: test-failure.t output changed |
153 ! | 153 ! |
154 Failed test-failure.t: output changed | 154 Failed test-failure.t: output changed |
155 # Ran 1 tests, 1 skipped, 0 warned, 1 failed. | 155 # Ran 2 tests, 1 skipped, 0 warned, 1 failed. |
156 python hash seed: * (glob) | 156 python hash seed: * (glob) |
157 [1] | 157 [1] |
158 | 158 |
159 Running In Debug Mode | 159 Running In Debug Mode |
160 ====================== | 160 ====================== |
318 # Ran 2 tests, 1 skipped, 0 warned, 1 failed. | 318 # Ran 2 tests, 1 skipped, 0 warned, 1 failed. |
319 python hash seed: * (glob) | 319 python hash seed: * (glob) |
320 [1] | 320 [1] |
321 | 321 |
322 $ $TESTDIR/run-tests.py --with-hg=`which hg` --keyword xyzzy | 322 $ $TESTDIR/run-tests.py --with-hg=`which hg` --keyword xyzzy |
323 i.s | 323 .s |
324 Skipped test-skip.t: irrelevant | 324 Skipped test-skip.t: irrelevant |
325 # Ran 1 tests, 2 skipped, 0 warned, 0 failed. | 325 # Ran 2 tests, 2 skipped, 0 warned, 0 failed. |
326 | 326 |
327 Skips with xml | 327 Skips with xml |
328 $ $TESTDIR/run-tests.py --with-hg=`which hg` --keyword xyzzy \ | 328 $ $TESTDIR/run-tests.py --with-hg=`which hg` --keyword xyzzy \ |
329 > --xunit=xunit.xml | 329 > --xunit=xunit.xml |
330 i.s | 330 .s |
331 Skipped test-skip.t: irrelevant | 331 Skipped test-skip.t: irrelevant |
332 # Ran 1 tests, 2 skipped, 0 warned, 0 failed. | 332 # Ran 2 tests, 2 skipped, 0 warned, 0 failed. |
333 $ cat xunit.xml | 333 $ cat xunit.xml |
334 <?xml version="1.0" encoding="utf-8"?> | 334 <?xml version="1.0" encoding="utf-8"?> |
335 <testsuite errors="0" failures="0" name="run-tests" skipped="2" tests="1"> | 335 <testsuite errors="0" failures="0" name="run-tests" skipped="2" tests="2"> |
336 <testcase name="test-success.t" time="*"/> (glob) | 336 <testcase name="test-success.t" time="*"/> (glob) |
337 </testsuite> | 337 </testsuite> |
338 | 338 |
339 Missing skips or blacklisted skips don't count as executed: | 339 Missing skips or blacklisted skips don't count as executed: |
340 $ echo test-failure.t > blacklist | 340 $ echo test-failure.t > blacklist |