summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkennyballou <kballou@onyx.boisestate.edu>2013-04-02 23:12:34 -0600
committerkennyballou <kballou@onyx.boisestate.edu>2013-04-02 23:12:34 -0600
commitbc411efd684f02253bc9e432082a087ccddaf8dd (patch)
treef06116c07a436fb031d6073602fbdb19bb96a4f8
parente24249b51439724cc8fafe91dbcc99fe442ff7e0 (diff)
downloadxnt-bc411efd684f02253bc9e432082a087ccddaf8dd.tar.gz
xnt-bc411efd684f02253bc9e432082a087ccddaf8dd.tar.xz
Add path checks for .exe versions as well
-rw-r--r--xnt/tests/maketests.py6
-rw-r--r--xnt/tests/textests.py3
2 files changed, 6 insertions, 3 deletions
diff --git a/xnt/tests/maketests.py b/xnt/tests/maketests.py
index ab7fa52..6d0b8a8 100644
--- a/xnt/tests/maketests.py
+++ b/xnt/tests/maketests.py
@@ -23,7 +23,8 @@ import xnt
import xnt.build.make
import xnt.tests
-@unittest.skipUnless(xnt.in_path("ant"), "Apache ant is not in your path")
+@unittest.skipUnless(xnt.in_path("ant") or xnt.in_path("ant.exe"),
+ "Apache ant is not in your path")
class AntTests(unittest.TestCase):
"""Test Case for Ant Build"""
def setUp(self):
@@ -93,7 +94,8 @@ class MakeTests(unittest.TestCase):
flags=["-B"])
self.assertEqual(result, 0)
-@unittest.skipUnless(xnt.in_path("nant"), "nant is not in your path")
+@unittest.skipUnless(xnt.in_path("nant") or xnt.in_path("nant.exe"),
+ "nant is not in your path")
class NAntTests(unittest.TestCase):
""".NET Ant Tests"""
diff --git a/xnt/tests/textests.py b/xnt/tests/textests.py
index d3f8f01..34b44d1 100644
--- a/xnt/tests/textests.py
+++ b/xnt/tests/textests.py
@@ -23,7 +23,8 @@ import xnt
import xnt.build.tex
import xnt.tests
-@unittest.skipUnless(xnt.in_path("pdflatex"), "pdflatex is not in your path")
+@unittest.skipUnless(xnt.in_path("pdflatex") or xnt.in_path("pdflatex.exe"),
+ "pdflatex is not in your path")
class TexTests(unittest.TestCase):
"""Test Case for TeX Document Building"""