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

Unified Diff: test/message/testcfg.py

Issue 11000: Periodic merge of bleeding_edge to experimental code generator branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years, 1 month 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 | « test/cctest/test-debug.cc ('k') | test/mjsunit/debug-script.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/testcfg.py
===================================================================
--- test/message/testcfg.py (revision 868)
+++ test/message/testcfg.py (working copy)
@@ -27,7 +27,7 @@
import test
import os
-from os.path import join, dirname, exists, basename
+from os.path import join, dirname, exists, basename, isdir
import re
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
@@ -93,7 +93,10 @@
super(MessageTestConfiguration, self).__init__(context, root)
def Ls(self, path):
- return [f[:-3] for f in os.listdir(path) if f.endswith('.js')]
+ if isdir(path):
+ return [f[:-3] for f in os.listdir(path) if f.endswith('.js')]
+ else:
+ return []
def ListTests(self, current_path, path, mode):
mjsunit = [current_path + [t] for t in self.Ls(self.root)]
« no previous file with comments | « test/cctest/test-debug.cc ('k') | test/mjsunit/debug-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698