tests/test-run-tests.t
changeset 34263 1533371769b5
parent 34041 40313c63da87
child 34842 8bce3e51b101
--- a/tests/test-run-tests.t	Mon Sep 18 15:34:50 2017 -0400
+++ b/tests/test-run-tests.t	Mon Sep 18 17:11:32 2017 -0400
@@ -981,6 +981,19 @@
   python hash seed: * (glob)
   [1]
 
+Ensure that --test-list causes only the tests listed in that file to
+be executed.
+  $ echo test-success.t >> onlytest
+  $ rt --test-list=onlytest
+  .
+  # Ran 1 tests, 0 skipped, 0 failed.
+  $ echo test-bogus.t >> anothertest
+  $ rt --test-list=onlytest --test-list=anothertest
+  s.
+  Skipped test-bogus.t: Doesn't exist
+  # Ran 1 tests, 1 skipped, 0 failed.
+  $ rm onlytest anothertest
+
 test for --json
 ==================