Issue Bug Resolved

#110723Streamline temporary file cleanup in unit tests

Wouter Wolters 09/16/26, 16:01 updated 09/23/26, 12:35

Description

Several unit tests remove temporary artifacts inline or implement
custom tearDown methods. This duplicates cleanup logic.

Register created files and directories in the inherited
testFilesToDelete collection. UnitTestCase removes them consistently
during tearDown, including when a test fails early.

Reviews 2

History 49

  1. Wouter Wolters changed subject Prevent imaging unit tests from leaking temporary files Streamline temporary file cleanup in unit tests description <span data-processor="relativetime" data-value="2026-09-16T16:35:44+00:00" > 09/16/26, 16:35 </span>

  2. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-23T01:55:13+00:00" > 09/23/26, 01:55 </span>

    Applied in changeset commit:f8ac4a023257c94ed578607843f7783bdaf892f6.

  3. Gerrit Code Review pushed patch set 3 for 14.3 to change 95984 status Resolved Under Review <span data-processor="relativetime" data-value="2026-09-23T12:12:48+00:00" > 09/23/26, 12:12 </span>

  4. Wouter Wolters commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-09-23T12:35:15+00:00" > 09/23/26, 12:35 </span>

    Applied in changeset commit:b0a951d333b6c1788c5dc87d74e4147f87549852.