changeset 29173:fa9fae9a9372

tests: add coverage for run-tests.py --whitelist
author timeless <timeless@mozdev.org>
date Fri, 06 May 2016 00:45:31 +0000
parents 2ea9c9aa6e60
children 478e2b85fcce
files tests/test-run-tests.t
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 ==================