Author: [EMAIL PROTECTED]
Date: Fri Nov 21 04:26:31 2008
New Revision: 818

Modified:
    branches/bleeding_edge/test/message/testcfg.py

Log:
Applied patch from Alexander Botero-Lowry to fix tests on fresh
checkout with git-svn.


Modified: branches/bleeding_edge/test/message/testcfg.py
==============================================================================
--- branches/bleeding_edge/test/message/testcfg.py      (original)
+++ branches/bleeding_edge/test/message/testcfg.py      Fri Nov 21 04:26:31 2008
@@ -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)]

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to