diff tests/hghave.py @ 26696:bad09bd22b6a

run-tests: add support for marking tests as very slow I want to add tests for our packaging rules, but those necessarily run a whole build, or possibly two if both native packaging and docker are available. This lets us flag such tests with a `#require slow` so that they don't unnecessarily slow down normal test runs.
author Augie Fackler <augie@google.com>
date Mon, 24 Aug 2015 22:23:45 -0400
parents 05e7f57c74ac
children 2dcfb98c5314
line wrap: on
line diff
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -427,3 +427,7 @@
 @check("pure", "running with pure Python code")
 def has_pure():
     return os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure"
+
+@check("slow", "allow slow tests")
+def has_slow():
+    return os.environ.get('HGTEST_SLOW') == 'slow'