aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-10-01 14:34:39 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-10-01 14:34:39 +0200
commit79ef8ac5f17ec18b42b74a548a5199380ba73647 (patch)
tree679cb0c2d0feafae517615c0daea18e45a23639b /tests
parentf00ade4212107f721b090391b957c9bcd397dab6 (diff)
downloadqxmpp-79ef8ac5f17ec18b42b74a548a5199380ba73647.tar.gz
test program path before executing tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run.py b/tests/run.py
index 9ccff741..6acbd288 100755
--- a/tests/run.py
+++ b/tests/run.py
@@ -41,8 +41,12 @@ for test in os.listdir(root):
if os.path.isdir(test_path):
if platform.system() == 'Darwin':
prog = os.path.join(test_path, 'tst_' + test + '.app', 'Contents', 'MacOS', 'tst_' + test)
+ elif platform.system() == 'Windows':
+ prog = os.path.join(test_path, 'tst_' + test + '.exe')
else:
prog = os.path.join(test_path, 'tst_' + test)
+ if not os.path.exists(prog):
+ continue
if report_path:
os.system('%s -xunitxml -o %s/%s.xml' % (prog, report_path, test))
else: