[SERVER-40415] Tempfile cleanup from test_adb_monitor.py Created: 01/Apr/19  Updated: 29/Oct/23  Resolved: 09/Apr/19

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

Type: Bug Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: DAG 2019-04-22
Participants:
Linked BF Score: 8
Story Points: 1

 Description   

Tempfiles are not cleaned up in test_adb_monitor.py

The code which creates a named temp file, should also specify a temp_dir:

            arg_test_file = tempfile.NamedTemporaryFile(delete=False).name

Should be:

            arg_test_file = tempfile.NamedTemporaryFile(dir=self.temp_dir, delete=False).name



 Comments   
Comment by Githook User [ 09/Apr/19 ]

Author:

{'email': 'jonathan@mongodb.com', 'name': 'Jonathan Abrahams', 'username': 'hptabster'}

Message: SERVER-40415 Tempfile cleanup from test_adb_monitor.py
Branch: master
https://github.com/mongodb/mongo/commit/386dc94aad875d8e43bec3db0d3e970286c94494

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