[SERVER-33737] DynamicJSTestCase logger does not get properly updated with test logger Created: 08/Mar/18  Updated: 29/Oct/23  Resolved: 08/Mar/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.7.3

Type: Bug Priority: Major - P3
Reporter: Yves Duhem Assignee: Yves Duhem
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-33665 Tests run by hooks should be TestCase... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 2018-03-26
Participants:
Linked BF Score: 0

 Description   

DynamicJSTestCase is implemented by wrapping a JSTestCase instance.
When running the test, the TestReport replaces the test logger but this changes only the logger attribute of the DynamicJSTestCase and not the logger attribute of the wrapped JSTestCase which is the one that gets used during the test execution.



 Comments   
Comment by Githook User [ 08/Mar/18 ]

Author:

{'email': 'yves.duhem@mongodb.com', 'name': 'Yves Duhem', 'username': 'syev'}

Message: SERVER-33737 Fix logger override for DynamicJSTestCase
Branch: master
https://github.com/mongodb/mongo/commit/37eab69b765901c4737f01e5186de61cfbe0ec8a

Generated at Thu Feb 08 04:34:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.