Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40415

Tempfile cleanup from test_adb_monitor.py

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.10
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      DAG 2019-04-22
    • 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
      

        Attachments

          Activity

            People

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: