Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: tools/test.py

Issue 4082: Fixed test framework problem. (Closed)
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.py
diff --git a/tools/test.py b/tools/test.py
index 660ee37c00b510bdece659125b5d374ec3e0c269..1632895c0d36afe8b5c5f413344f155821a902ec 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():
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698