Skip to content

Commit

Permalink
tests: Delete core files for successful tests
Browse files Browse the repository at this point in the history
By default pytest keeps temp files for the last 3 runs of the test suite
around, but this can quickly fill up a disk due to the number of core
files we create. Configure it to only keep temp files for failed tests.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed Aug 17, 2024
1 parent ebdeb8d commit 18a44a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,8 @@ omit = [

[tool.coverage.report]
show_missing = true

[tool.pytest.ini_options]
# pytest retains all temp files from the last 3 test suite runs by default.
# Keep only ones for failed tests to avoid filling up a disk.
tmp_path_retention_policy = "failed"

0 comments on commit 18a44a3

Please sign in to comment.