Mercurial > public > mercurial-scm > hg
diff tests/hghave @ 15446:c5c9ca3719f9
tests: use 'hghave serve' to guard tests that requires serve daemon management
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 07 Nov 2011 03:24:53 +0100 |
parents | 7cbb81c47025 |
children | d09ea5bbc9a4 |
line wrap: on
line diff
--- a/tests/hghave Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/hghave Mon Nov 07 03:24:53 2011 +0100 @@ -215,6 +215,9 @@ def has_system_sh(): return os.name != 'nt' +def has_serve(): + return os.name != 'nt' # gross approximation + checks = { "baz": (has_baz, "GNU Arch baz client"), "bzr": (has_bzr, "Canonical's Bazaar client"), @@ -237,6 +240,7 @@ "p4": (has_p4, "Perforce server and client"), "pyflakes": (has_pyflakes, "Pyflakes python linter"), "pygments": (has_pygments, "Pygments source highlighting library"), + "serve": (has_serve, "platform and python can manage 'hg serve -d'"), "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"), "svn": (has_svn, "subversion client and admin tools"), "svn13": (has_svn13, "subversion client and admin tools >= 1.3"),