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),
|
self.context.GetTimeout(self.mode),
|
||||||
env,
|
env,
|
||||||
True)
|
True)
|
||||||
self.Cleanup()
|
|
||||||
return test.TestOutput(self,
|
return test.TestOutput(self,
|
||||||
full_command,
|
full_command,
|
||||||
output,
|
output,
|
||||||
|
@ -517,21 +517,12 @@ class TestCase(object):
|
|||||||
self.context.GetTimeout(self.mode),
|
self.context.GetTimeout(self.mode),
|
||||||
env,
|
env,
|
||||||
disable_core_files = self.disable_core_files)
|
disable_core_files = self.disable_core_files)
|
||||||
self.Cleanup()
|
|
||||||
return TestOutput(self,
|
return TestOutput(self,
|
||||||
full_command,
|
full_command,
|
||||||
output,
|
output,
|
||||||
self.context.store_unexpected_output)
|
self.context.store_unexpected_output)
|
||||||
|
|
||||||
def BeforeRun(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def AfterRun(self, result):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def Run(self):
|
def Run(self):
|
||||||
self.BeforeRun()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result = self.RunCommand(self.GetCommand(), {
|
result = self.RunCommand(self.GetCommand(), {
|
||||||
"TEST_THREAD_ID": "%d" % self.thread_id,
|
"TEST_THREAD_ID": "%d" % self.thread_id,
|
||||||
@ -547,12 +538,8 @@ class TestCase(object):
|
|||||||
from os import O_NONBLOCK
|
from os import O_NONBLOCK
|
||||||
for fd in 0,1,2: fcntl(fd, F_SETFL, ~O_NONBLOCK & fcntl(fd, F_GETFL))
|
for fd in 0,1,2: fcntl(fd, F_SETFL, ~O_NONBLOCK & fcntl(fd, F_GETFL))
|
||||||
|
|
||||||
self.AfterRun(result)
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def Cleanup(self):
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class TestOutput(object):
|
class TestOutput(object):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user