Author: [EMAIL PROTECTED]
Date: Thu Sep 25 06:01:26 2008
New Revision: 376
Modified:
branches/bleeding_edge/tools/test.py
Log:
Fixed problem where the test framework would assume that .svn was a
test suite and then fail.
Modified: branches/bleeding_edge/tools/test.py
==============================================================================
--- branches/bleeding_edge/tools/test.py (original)
+++ branches/bleeding_edge/tools/test.py Thu Sep 25 06:01:26 2008
@@ -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 @@
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():
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---