Skip to content

Commit 02e665c

Browse files
maclover7targos
authored andcommitted
tools,test: remove unused config hooks
Removes a couple of unused/empty functions inside of `tools/test.py` PR-URL: #22010 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b5ae339 commit 02e665c

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

test/pseudo-tty/testcfg.py

-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def RunCommand(self, command, env):
110110
self.context.GetTimeout(self.mode),
111111
env,
112112
True)
113-
self.Cleanup()
114113
return test.TestOutput(self,
115114
full_command,
116115
output,

tools/test.py

-13
Original file line numberDiff line numberDiff line change
@@ -517,21 +517,12 @@ def RunCommand(self, command, env):
517517
self.context.GetTimeout(self.mode),
518518
env,
519519
disable_core_files = self.disable_core_files)
520-
self.Cleanup()
521520
return TestOutput(self,
522521
full_command,
523522
output,
524523
self.context.store_unexpected_output)
525524

526-
def BeforeRun(self):
527-
pass
528-
529-
def AfterRun(self, result):
530-
pass
531-
532525
def Run(self):
533-
self.BeforeRun()
534-
535526
try:
536527
result = self.RunCommand(self.GetCommand(), {
537528
"TEST_THREAD_ID": "%d" % self.thread_id,
@@ -547,12 +538,8 @@ def Run(self):
547538
from os import O_NONBLOCK
548539
for fd in 0,1,2: fcntl(fd, F_SETFL, ~O_NONBLOCK & fcntl(fd, F_GETFL))
549540

550-
self.AfterRun(result)
551541
return result
552542

553-
def Cleanup(self):
554-
return
555-
556543

557544
class TestOutput(object):
558545

0 commit comments

Comments
 (0)