--- a/tests/hghave.py Fri Nov 01 17:14:49 2013 +0000
+++ b/tests/hghave.py Sun Nov 17 17:30:23 2013 +0000
@@ -233,6 +233,9 @@
finally:
os.rmdir(d)
+def has_root():
+ return os.geteuid() == 0
+
def has_pyflakes():
return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"",
r"<stdin>:1: 're' imported but unused",
@@ -312,6 +315,7 @@
"p4": (has_p4, "Perforce server and client"),
"pyflakes": (has_pyflakes, "Pyflakes python linter"),
"pygments": (has_pygments, "Pygments source highlighting library"),
+ "root": (has_root, "root permissions"),
"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"),