Mercurial > hg
diff tests/hghave @ 16891:b0e8afdfa970
tests/hghave: implement #if true / #if false
For unconditionally testing / skipping a section. Useful for testing the test
infrastructure in test-run-tests.t and for debugging/developing tests.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 08 Jun 2012 15:11:05 +0200 |
parents | 40d930848fd0 |
children | 23f621ca04b5 |
line wrap: on
line diff
--- a/tests/hghave Fri Jun 08 15:11:05 2012 +0200 +++ b/tests/hghave Fri Jun 08 15:11:05 2012 +0200 @@ -241,6 +241,8 @@ return os.getenv('MSYSTEM') checks = { + "true": (lambda: True, "yak shaving"), + "false": (lambda: False, "nail clipper"), "baz": (has_baz, "GNU Arch baz client"), "bzr": (has_bzr, "Canonical's Bazaar client"), "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"),