summaryrefslogtreecommitdiffstats
path: root/V8Binding/v8/tools/test.py
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-07-13 16:30:18 -0700
committerFeng Qian <fqian@google.com>2009-07-13 16:30:18 -0700
commit5a9288abcf660ba3499c9e650b415d81872837fc (patch)
treee39df4bee097d4d92fb27e1b4b1aa6c06380e3c1 /V8Binding/v8/tools/test.py
parent2350931596370d4cc9fc26d72039369d9fe72c9c (diff)
downloadexternal_webkit-5a9288abcf660ba3499c9e650b415d81872837fc.zip
external_webkit-5a9288abcf660ba3499c9e650b415d81872837fc.tar.gz
external_webkit-5a9288abcf660ba3499c9e650b415d81872837fc.tar.bz2
Update V8 to bleeding_edge@2450 to pick up a few important fixes.
API stays the same, and the same revision is pushed to Chromium.
Diffstat (limited to 'V8Binding/v8/tools/test.py')
-rwxr-xr-xV8Binding/v8/tools/test.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/V8Binding/v8/tools/test.py b/V8Binding/v8/tools/test.py
index f701ceb..05eb9fd 100755
--- a/V8Binding/v8/tools/test.py
+++ b/V8Binding/v8/tools/test.py
@@ -356,11 +356,15 @@ class TestCase(object):
def RunCommand(self, command):
full_command = self.context.processor(command)
output = Execute(full_command, self.context, self.context.timeout)
+ self.Cleanup()
return TestOutput(self, full_command, output)
def Run(self):
return self.RunCommand(self.GetCommand())
+ def Cleanup(self):
+ return
+
class TestOutput(object):
@@ -473,6 +477,13 @@ def PrintError(str):
sys.stderr.write('\n')
+def CheckedUnlink(name):
+ try:
+ os.unlink(name)
+ except OSError, e:
+ PrintError("os.unlink() " + str(e))
+
+
def Execute(args, context, timeout=None):
(fd_out, outname) = tempfile.mkstemp()
(fd_err, errname) = tempfile.mkstemp()
@@ -487,11 +498,6 @@ def Execute(args, context, timeout=None):
os.close(fd_err)
output = file(outname).read()
errors = file(errname).read()
- def CheckedUnlink(name):
- try:
- os.unlink(name)
- except OSError, e:
- PrintError("os.unlink() " + str(e))
CheckedUnlink(outname)
CheckedUnlink(errname)
return CommandOutput(exit_code, timed_out, output, errors)