# HG changeset patch # User Adrian Buehlmann # Date 1339161065 -7200 # Node ID 15dc93f78ecd6c3f535ada48f4ca0d8f840c4163 # Parent e7e4ca624772a380b096286b5dad1f0f250a69ea 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. [ original upstream message ] diff -r e7e4ca624772 -r 15dc93f78ecd tests/hghave --- a/tests/hghave Sun Jun 10 03:05:59 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"),