diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-10-18 14:46:25 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-18 14:54:39 -0700 |
commit | 97255c2651f726cc1d466700f35d5ba085cc07f5 (patch) | |
tree | 5d890fe18b5a30cfa61e97f416f709357858ec3e /test/internet/testcfg.py | |
parent | 56df0cbf93f78daf905eae7bd66daf0910650a72 (diff) | |
download | android-node-v8-97255c2651f726cc1d466700f35d5ba085cc07f5.tar.gz android-node-v8-97255c2651f726cc1d466700f35d5ba085cc07f5.tar.bz2 android-node-v8-97255c2651f726cc1d466700f35d5ba085cc07f5.zip |
Fix test harness for Linux
Mostly just upgraded tools/test.py to the latest one that's in V8. But also
fixing the before and after hooks to preserve the test/tmp directory so that
running tests manually usually works.
Diffstat (limited to 'test/internet/testcfg.py')
-rw-r--r-- | test/internet/testcfg.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/internet/testcfg.py b/test/internet/testcfg.py index 7d730edebd..85bb70b210 100644 --- a/test/internet/testcfg.py +++ b/test/internet/testcfg.py @@ -35,10 +35,10 @@ FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)") FILES_PATTERN = re.compile(r"//\s+Files:(.*)") -class SimpleTestCase(test.TestCase): +class InternetTestCase(test.TestCase): def __init__(self, path, file, mode, context, config): - super(SimpleTestCase, self).__init__(context, path) + super(InternetTestCase, self).__init__(context, path) self.file = file self.config = config self.mode = mode @@ -68,10 +68,10 @@ class SimpleTestCase(test.TestCase): return open(self.file).read() -class SimpleTestConfiguration(test.TestConfiguration): +class InternetTestConfiguration(test.TestConfiguration): def __init__(self, context, root): - super(SimpleTestConfiguration, self).__init__(context, root) + super(InternetTestConfiguration, self).__init__(context, root) def Ls(self, path): def SelectTest(name): @@ -91,7 +91,7 @@ class SimpleTestConfiguration(test.TestConfiguration): for test in all_tests: if self.Contains(path, test): file_path = join(self.root, reduce(join, test[1:], "") + ".js") - result.append(SimpleTestCase(test, file_path, mode, self.context, self)) + result.append(InternetTestCase(test, file_path, mode, self.context, self)) return result def GetBuildRequirements(self): @@ -105,4 +105,4 @@ class SimpleTestConfiguration(test.TestConfiguration): def GetConfiguration(context, root): - return SimpleTestConfiguration(context, root) + return InternetTestConfiguration(context, root) |