1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2025-06-02 15:43:59 +00:00

Add test to verify that file is only included once in archive

As of the switch (in 4511f5d9) to use git ls-files to list files to include in
archive, duplicate matches are automatically removed (fixes #125).
This commit is contained in:
Erik Flodin 2025-01-27 21:54:10 +01:00
parent 02b4019bc6
commit 1505b7ec8f
No known key found for this signature in database
GPG Key ID: 420A7C865EE3F85F

View File

@ -97,6 +97,7 @@ def create_test_encrypt_data(paths):
# wildcards
edata += "wild*\n"
edata += "*card1\n" # matches same file as the one above
paths.work.join("wildcard1").write("", ensure=True)
paths.work.join("wildcard2").write("", ensure=True)
expected.add("wildcard1")