summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-23 01:00:40 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-23 01:00:40 +0200
commit51035184ddcc7f5a4437f57e04474b4bb98d8a49 (patch)
treea909f06ab0c44e638142a793105e2b843423299d /wscript
parente6c8966d37833f6cd6329afa2c71e8c167cfc248 (diff)
downloadlibgit2-51035184ddcc7f5a4437f57e04474b4bb98d8a49.tar.gz
Prevent test manifests from being run
The test runner was running the manifest and other crap files. Now it filters out to just the executables. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index b02856862..85f7385b2 100644
--- a/wscript
+++ b/wscript
@@ -209,12 +209,15 @@ class _run_tests(Context):
fun = 'run_tests'
def run_tests(ctx):
- import shutil, tempfile
+ import shutil, tempfile, sys
failed = False
test_folder = tempfile.mkdtemp()
test_glob = 'build/tests/t????-*'
+ if sys.platform == 'win32':
+ test_glob += '.exe'
+
for test in ctx.path.ant_glob(test_glob):
if ctx.exec_command(test.abspath(), cwd=test_folder) != 0:
failed = True