From: christian.plesner.hansen@gmail.com Date: Thu, 25 Sep 2008 13:01:26 +0000 (+0000) Subject: Fixed problem where the test framework would assume that .svn was a X-Git-Tag: upstream/4.7.83~25317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=041d20ffeb6e71321c12e5aeda5f5849255ff5c5;p=platform%2Fupstream%2Fv8.git Fixed problem where the test framework would assume that .svn was a test suite and then fail. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@376 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/tools/test.py b/tools/test.py index 660ee37..1632895 100755 --- a/tools/test.py +++ b/tools/test.py @@ -30,7 +30,7 @@ import imp import optparse import os -from os.path import join, dirname, abspath, basename, isdir +from os.path import join, dirname, abspath, basename, isdir, exists import platform import re import signal @@ -1064,7 +1064,9 @@ BUILT_IN_TESTS = ['mjsunit', 'cctest'] def GetSuites(test_root): - return [ f for f in os.listdir(test_root) if isdir(join(test_root, f)) ] + def IsSuite(path): + return isdir(path) and exists(join(path, 'testcfg.py')) + return [ f for f in os.listdir(test_root) if IsSuite(join(test_root, f)) ] def Main():