Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools,test: remove unused config hooks #22010

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/pseudo-tty/testcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def RunCommand(self, command, env):
self.context.GetTimeout(self.mode),
env,
True)
self.Cleanup()
return test.TestOutput(self,
full_command,
output,
Expand Down
13 changes: 0 additions & 13 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,21 +517,12 @@ def RunCommand(self, command, env):
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,
Expand All @@ -547,12 +538,8 @@ def Run(self):
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):

Expand Down