Minor improvements: reduced verbosity of positioning tests; run.py - filter out non-executables on windows

This commit is contained in:
Andrey Kamaev
2012-04-27 19:13:58 +00:00
parent 1a9758c0a2
commit 95e657714f
2 changed files with 3 additions and 1 deletions

View File

@@ -381,6 +381,8 @@ class RunInfo(object):
def isTest(self, fullpath):
if not os.path.isfile(fullpath):
return False
if self.targetos == "nt" and not fullpath.endswith(".exe"):
return False
if hostos == self.targetos:
return os.access(fullpath, os.X_OK)
if self.targetos == "android" and fullpath.endswith(".apk"):