Opened 9 years ago
Closed 9 years ago
#26980 closed Cleanup/optimization (fixed)
Make it easier to change what RemoteTestRunner is used
| Reported by: | Chris Jerdonek | Owned by: | Chris Jerdonek |
|---|---|---|---|
| Component: | Testing framework | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Similar to ticket #26976, this issue is to make it easier to change what RemoteTestRunner class is used by ParallelTestSuite.
Currently, the class name is hard-coded inside _run_subsuite() here:
def _run_subsuite(args): subsuite_index, subsuite, failfast = args runner = RemoteTestRunner(failfast=failfast) result = runner.run(subsuite) return subsuite_index, result.events
This could be solved by making _run_subsuite() a method of ParallelTestSuite (instead of a function), and adding a remote_test_runner class attribute to ParallelTestSuite.
Change History (6)
comment:1 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 9 years ago
| Component: | Uncategorized → Testing framework |
|---|---|
| Type: | Uncategorized → Cleanup/optimization |
comment:3 by , 9 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|---|
| Version: | 1.9 → master |
comment:4 by , 9 years ago
comment:5 by , 9 years ago
| Has patch: | set |
|---|
Note:
See TracTickets
for help on using tickets.
I posted a pull request for this ticket here.
I tested the change by running the following with both Python 2.7 and 3.5 (verifying also that the tests failed if the change was done incorrectly):