diff tests/test-run-tests.t @ 35189:073843b5e353

run-tests: make --extra-config-opt work with Python 3 And add test coverage to ensure it works. Differential Revision: https://phab.mercurial-scm.org/D1476
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 20 Nov 2017 21:26:11 -0800
parents b4b0aed7bfaf
children 2a99c5bfea47
line wrap: on
line diff
--- a/tests/test-run-tests.t	Mon Nov 20 21:08:18 2017 -0800
+++ b/tests/test-run-tests.t	Mon Nov 20 21:26:11 2017 -0800
@@ -1566,3 +1566,14 @@
   # Ran 1 tests, 0 skipped, 1 failed.
   python hash seed: * (glob)
   [1]
+
+--extra-config-opt works
+
+  $ cat << EOF >> test-config-opt.t
+  >   $ hg init test-config-opt
+  >   $ hg -R test-config-opt purge
+  > EOF
+
+  $ rt --extra-config-opt extensions.purge= test-config-opt.t
+  .
+  # Ran 1 tests, 0 skipped, 0 failed.