Change the mozilla test support. The mozilla tests are now expected

to be located at tests/mozilla/data.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@43 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
mads.s.ager@gmail.com 2008-08-29 09:39:51 +00:00
parent fd5b0fc423
commit adea12f7ab
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@
# debugging.
# --------------------------------------------------------------------
prefix mozilla_js_tests
prefix mozilla
def FAIL_OK = FAIL, OKAY

View File

@ -91,7 +91,7 @@ class MozillaTestConfiguration(test.TestConfiguration):
def ListTests(self, current_path, path, mode):
tests = []
for test_dir in TEST_DIRS:
current_root = join(self.root, test_dir)
current_root = join(self.root, 'data', test_dir)
for root, dirs, files in os.walk(current_root):
for dotted in [x for x in dirs if x.startswith('.')]:
dirs.remove(dotted)
@ -111,6 +111,7 @@ class MozillaTestConfiguration(test.TestConfiguration):
for file in files:
if (not file in FRAMEWORK) and file.endswith('.js'):
full_path = root_path + [file[:-3]]
full_path = [x for x in full_path if x != 'data']
if self.Contains(path, full_path):
test = MozillaTestCase(join(root, file), full_path, self.context,
mode, framework)