Skip to content

Commit

Permalink
test: remove custom AsyncHooksTestConfiguration
Browse files Browse the repository at this point in the history
Has the same behavior as `ParallelTestConfiguration`

PR-URL: #22008
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
maclover7 authored and targos committed Jul 31, 2018
1 parent 4510ca3 commit fe1823d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion test/async-hooks/testcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import testpy

def GetConfiguration(context, root):
return testpy.AsyncHooksTestConfiguration(context, root, 'async-hooks')
return testpy.ParallelTestConfiguration(context, root, 'async-hooks')
12 changes: 0 additions & 12 deletions test/testpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,6 @@ def ListTests(self, current_path, path, arch, mode):
SimpleTestCase(test, file_path, arch, mode, self.context, self, self.additional_flags))
return result

class AsyncHooksTestConfiguration(SimpleTestConfiguration):
def __init__(self, context, root, section, additional=None):
super(AsyncHooksTestConfiguration, self).__init__(context, root, section,
additional)

def ListTests(self, current_path, path, arch, mode):
result = super(AsyncHooksTestConfiguration, self).ListTests(
current_path, path, arch, mode)
for test in result:
test.parallel = True
return result

class AbortTestConfiguration(SimpleTestConfiguration):
def __init__(self, context, root, section, additional=None):
super(AbortTestConfiguration, self).__init__(context, root, section,
Expand Down

0 comments on commit fe1823d

Please sign in to comment.