[pve-devel] superseded: [PATCH proxmox] apt: tests: remove output directories before running test

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Sep 7 10:30:00 CEST 2023


Am 05/06/2023 um 17:26 schrieb Fiona Ebner:
> I blindly assumed that cargo would re-create the TMPDIR before each
> test run, but that doesn't seem to be the case and the test_digest
> test now fails the second time when running 'cargo test' twice.
> 
> So partially revert 9b7c533 ("apt: tests: create temporary test
> directories in CARGO_TARGET_TMPDIR") and re-introduce the
> remove-before-test logic.
> 
> Fixes: 9b7c533 ("apt: tests: create temporary test directories in CARGO_TARGET_TMPDIR")
> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
>  proxmox-apt/tests/repositories.rs | 10 ++++++++++
>  1 file changed, 10 insertions(+)

for the record, as we talked off-list:

I run into this my own and missed that there was already a patch on the list.

Thus I quick fixed it directly [0]: for the test case I run into, but you showed
my your patch and I then decided that we can factor that cleanup+create out and
did so with [1]. So this patch here should now be fully superseded.

[0]: https://git.proxmox.com/?p=proxmox.git;a=commitdiff;h=ae3c04a76b0b82597b63989e1a97ae919af03168
[1]: https://git.proxmox.com/?p=proxmox.git;a=commitdiff;h=4e2cc6fd53dec2b61d54e25b3e8b9b1fb0bf43d3





More information about the pve-devel mailing list