Patchwork [2,of,7] tests: add coverage for run-tests.py --whitelist

login
register
mail settings
Submitter timeless
Date May 11, 2016, 5:20 a.m.
Message ID <f82bc56b1a3c113e1279.1462944024@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/14993/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

timeless - May 11, 2016, 5:20 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1462495531 0
#      Fri May 06 00:45:31 2016 +0000
# Node ID f82bc56b1a3c113e127952739431fcdb86943339
# Parent  3f54a96b83308821064b1426c6bf347123ea9e59
# EXP-Topic runtests
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r f82bc56b1a3c
tests: add coverage for run-tests.py --whitelist

Patch

diff -r 3f54a96b8330 -r f82bc56b1a3c tests/test-run-tests.t
--- a/tests/test-run-tests.t	Tue Apr 05 01:35:36 2016 +0000
+++ b/tests/test-run-tests.t	Fri May 06 00:45:31 2016 +0000
@@ -591,6 +591,30 @@ 
           "result": "skip"
       }
   } (no-eol)
+
+Whitelist trumps blacklist
+  $ echo test-failure.t > whitelist
+  $ rt --blacklist=blacklist --whitelist=whitelist --json\
+  >   test-failure.t test-bogus.t
+  s
+  --- $TESTTMP/test-failure.t
+  +++ $TESTTMP/test-failure.t.err
+  @@ -1,5 +1,5 @@
+     $ echo babar
+  -  rataxes
+  +  babar
+   This is a noop statement so that
+   this test is still more bytes than success.
+   pad pad pad pad............................................................
+  
+  ERROR: test-failure.t output changed
+  !
+  Skipped test-bogus.t: Doesn't exist
+  Failed test-failure.t: output changed
+  # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
+  python hash seed: * (glob)
+  [1]
+
 test for --json
 ==================