Page MenuHomeSoftware Heritage

docker/tests: Fix symlink handling in test_vault_directory
ClosedPublic

Authored by anlambert on Apr 8 2021, 2:49 PM.

Details

Summary

The issue appeared since the introduction of a symbolic link in
the swh-core repository used as test input.

Closes T3181

Depends on D5454

Diff Detail

Repository
rDENV Development environment
Branch
docker-fix-vault-test
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 20544
Build 31886: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Apr 8 2021, 2:58 PM
vlorentz added a subscriber: vlorentz.

I don't like this test... it feels like it's re-implementing part of the vault and comparing the two impls...

docker/tests/test_vault.py
45–53

please,

if C: A
else: B

instead of

if not C: B
else: A

val's suggestion is good to ;)