# HG changeset patch # User Siddharth Agarwal # Date 2017-06-10 21:07:31 # Node ID 9cf74abd1252fa4ff2ed078bdd2c9ad3d22a337c # Parent efd6e941e933dc2dc341b0f8aafb11665bd5fe85 hghave: add test for whether fsmonitor is enabled This uses the HGFSMONITOR_TESTS environment variable that fsmonitor-run-tests.py adds. diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -643,3 +643,7 @@ def has_virtualenv(): return True except ImportError: return False + +@check("fsmonitor", "running tests with fsmonitor") +def has_fsmonitor(): + return 'HGFSMONITOR_TESTS' in os.environ