Commit Graph

7 Commits

Author SHA1 Message Date
Jonathan Abrahams 36148ad8bb SERVER-23312 Format Python files with yapf 2018-03-26 13:04:25 -04:00
Yves Duhem d0cadc1fa1 SERVER-33665 Make hook dynamic tests TestCase instances 2018-03-06 16:29:23 -05:00
Yves Duhem 6618ad3025 SERVER-33396 Update fixture teardown to throw ServerFailure 2018-03-02 12:14:51 -05:00
Yves Duhem 4a69dcaf78 SERVER-33476 Rename CustomBehavior to Hook 2018-02-27 11:29:46 -05:00
Max Hirschhorn 2c451638c2 SERVER-32474 Fix double logging when using --log=buildlogger.
Exposes an additional logger that uses the test's root logger as the
parent for any TestCase instances constructor by the hook. The fixture
logger still continues to be the parent of the hook logger.

Also changes the CleanEveryN hook to explicitly get marked as a failure
if a ServerFailure exception is thrown, rather than relying on
TestReport.combine() to do so implicitly.
2018-01-10 14:15:35 -05:00
Max Hirschhorn c57ab42219 SERVER-29560 Split testcases.py module into separate files. 2017-06-14 20:44:52 -04:00
Max Hirschhorn b8f6239094 SERVER-29560 Split hooks.py module into separate files.
Also defines a generic Registry metaclass for making class declarations
store a reference to the class along with a name so that they can be
looked up later.
2017-06-14 20:44:52 -04:00