Skip to content

Commit 881ba65

Browse files
authored
fix(plugins): Root folder name on generated .tar.gz (#638)
1 parent 97ad1f7 commit 881ba65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_plugins/test_filler/test_filler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def create_tarball(
592592
with tarfile.open(tarball_filename, "w:gz") as tar:
593593
for file in source_dir.rglob("*"):
594594
if file.suffix in {".json", ".ini"}:
595-
arcname = file.relative_to(source_dir.parent)
595+
arcname = Path("fixtures") / file.relative_to(source_dir)
596596
tar.add(file, arcname=arcname)
597597

598598

0 commit comments

Comments
 (0)