mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
samba.tests.docs: Assume docs are generated by waf.
This commit is contained in:
parent
cfa72bcc5e
commit
ed37b8ad14
@ -44,10 +44,14 @@ class NoXsltProc(Exception):
|
|||||||
|
|
||||||
|
|
||||||
def get_documented_parameters(sourcedir):
|
def get_documented_parameters(sourcedir):
|
||||||
|
path = os.path.join(sourcedir, "bin", "default", "docs-xml", "smbdotconf")
|
||||||
|
if not os.path.exists(os.path.join(path, "parameters.all.xml")):
|
||||||
|
raise Exception("Unable to find parameters.all.xml")
|
||||||
try:
|
try:
|
||||||
p = subprocess.Popen(
|
p = subprocess.Popen(
|
||||||
["xsltproc", "--xinclude", "--param", "smb.context", "ALL", "generate-context.xsl", "parameters.all.xml"],
|
["xsltproc", "--xinclude", "--param", "smb.context", "ALL", os.path.join(sourcedir, "docs-xml", "smbdotconf", "generate-context.xsl"), "parameters.all.xml"],
|
||||||
stderr=subprocess.STDOUT, stdout=subprocess.PIPE, cwd=os.path.join(sourcedir, "docs-xml", "smbdotconf"))
|
stderr=subprocess.STDOUT, stdout=subprocess.PIPE,
|
||||||
|
cwd=path)
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
if e.errno == errno.ENOENT:
|
if e.errno == errno.ENOENT:
|
||||||
raise NoXsltProc()
|
raise NoXsltProc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user