comparison tests/hghave.py @ 32770: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 a6e4c4218b71
children 41f99a90675d
comparison
equal deleted inserted replaced
32769:efd6e941e933 32770:9cf74abd1252
641 import virtualenv 641 import virtualenv
642 virtualenv.ACTIVATE_SH 642 virtualenv.ACTIVATE_SH
643 return True 643 return True
644 except ImportError: 644 except ImportError:
645 return False 645 return False
646
647 @check("fsmonitor", "running tests with fsmonitor")
648 def has_fsmonitor():
649 return 'HGFSMONITOR_TESTS' in os.environ