tools,test: remove unused config hooks
Removes a couple of unused/empty functions inside of `tools/test.py` PR-URL: https://github.com/nodejs/node/pull/22010 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
6fe740e014
commit
3b23b4d7c0
@ -110,7 +110,6 @@ class TTYTestCase(test.TestCase):
|
||||
self.context.GetTimeout(self.mode),
|
||||
env,
|
||||
True)
|
||||
self.Cleanup()
|
||||
return test.TestOutput(self,
|
||||
full_command,
|
||||
output,
|
||||
|
@ -517,21 +517,12 @@ class TestCase(object):
|
||||
self.context.GetTimeout(self.mode),
|
||||
env,
|
||||
disable_core_files = self.disable_core_files)
|
||||
self.Cleanup()
|
||||
return TestOutput(self,
|
||||
full_command,
|
||||
output,
|
||||
self.context.store_unexpected_output)
|
||||
|
||||
def BeforeRun(self):
|
||||
pass
|
||||
|
||||
def AfterRun(self, result):
|
||||
pass
|
||||
|
||||
def Run(self):
|
||||
self.BeforeRun()
|
||||
|
||||
try:
|
||||
result = self.RunCommand(self.GetCommand(), {
|
||||
"TEST_THREAD_ID": "%d" % self.thread_id,
|
||||
@ -547,12 +538,8 @@ class TestCase(object):
|
||||
from os import O_NONBLOCK
|
||||
for fd in 0,1,2: fcntl(fd, F_SETFL, ~O_NONBLOCK & fcntl(fd, F_GETFL))
|
||||
|
||||
self.AfterRun(result)
|
||||
return result
|
||||
|
||||
def Cleanup(self):
|
||||
return
|
||||
|
||||
|
||||
class TestOutput(object):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user