changeset 32790:9cf74abd1252

hghave: add test for whether fsmonitor is enabled This uses the HGFSMONITOR_TESTS environment variable that fsmonitor-run-tests.py adds.
author Siddharth Agarwal <sid0@fb.com>
date Sat, 10 Jun 2017 14:07:31 -0700
parents efd6e941e933
children c82fa7efcbc8
files tests/hghave.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Sat Jun 10 14:07:30 2017 -0700
+++ b/tests/hghave.py	Sat Jun 10 14:07:31 2017 -0700
@@ -643,3 +643,7 @@
         return True
     except ImportError:
         return False
+
+@check("fsmonitor", "running tests with fsmonitor")
+def has_fsmonitor():
+    return 'HGFSMONITOR_TESTS' in os.environ