[svn r57322] port 57306 from branch: check for actually needed binaries

--HG--
branch : trunk
This commit is contained in:
hpk
2008-08-16 17:29:35 +02:00
parent abc8cf09aa
commit 7dca0d02a9
2 changed files with 7 additions and 6 deletions

View File

@@ -4,10 +4,10 @@ from py.__.rest.convert import convert_dot, latexformula2png
datadir = py.magic.autopath().dirpath().join("data")
def setup_module(mod):
if not py.path.local.sysfind("gs") or \
not py.path.local.sysfind("dot") or \
not py.path.local.sysfind("latex"):
py.test.skip("ghostscript, graphviz and latex needed")
required = 'gs', 'dot', 'latex', 'epstopdf',
for exe in required:
if not py.path.local.sysfind(exe):
py.test.skip("%r not found, required: %r" %(exe, required))
def test_convert_dot():
# XXX not really clear that the result is valid pdf/eps