Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02e665c

Browse filesBrowse 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 <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b5ae339 commit 02e665c
Copy full SHA for 02e665c

File tree

Expand file treeCollapse file tree

2 files changed

+0
-14
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-14
lines changed
Open diff view settings
Collapse file

‎test/pseudo-tty/testcfg.py‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/testcfg.py
-1Lines changed: 0 additions & 1 deletion
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,
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
-13Lines changed: 0 additions & 13 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.