]> git.proxmox.com Git - proxmox.git/commit
tests: factor out directory cleanup+creation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Sep 2023 10:46:20 +0000 (12:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Sep 2023 13:15:46 +0000 (15:15 +0200)
commit4e2cc6fd53dec2b61d54e25b3e8b9b1fb0bf43d3
tree936617df0d43d33025b18dc05980250f443749a6
parent195e9e1cdfd642c8d2611de668ba7b7d50bf7b64
tests: factor out directory cleanup+creation

This moves the clean-up to happen up-front. That way one can still
inspect the test data after, e.g., a failed test.

Originally done almost like this in a patch from Fiona [0] that I just
overlooked, but now also factored out, avoid crowding the test code to
much with duplicate code.

[0]: https://lists.proxmox.com/pipermail/pve-devel/2023-June/057136.html

Suggested-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-apt/tests/repositories.rs