Skip to content

Commit 43d488e

Browse files
committed
fix test
1 parent 9ed5afb commit 43d488e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gardenlinux/features/reproducibility/comparator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _diff_files(
129129
if not left_root:
130130
left_root = Path(cmp.left)
131131
for name in cmp.diff_files:
132-
result.append(f"/{left_root.relative_to(left_root).joinpath(name)}")
132+
result.append(f"/{Path(cmp.left).relative_to(left_root).joinpath(name)}")
133133
for sub_cmp in cmp.subdirs.values():
134134
result += self._diff_files(sub_cmp, left_root=left_root)
135135
return result

tests/features/test_reproducibility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ def test_formatter(i: str) -> None:
104104
FLAVORS_MATRIX,
105105
BARE_FLAVORS_MATRIX,
106106
diff_files.joinpath(i),
107-
gardenlinux_root=gardenlinux_root,
107+
gardenlinux_root=str(gardenlinux_root),
108108
nightly_stats=nightly_stats,
109109
)
110110
else:
111111
formatter = MarkdownFormatter(
112112
FLAVORS_MATRIX,
113113
BARE_FLAVORS_MATRIX,
114114
diff_files.joinpath(i),
115-
gardenlinux_root=gardenlinux_root,
115+
gardenlinux_root=str(gardenlinux_root),
116116
)
117117

118118
with open(diff_files.joinpath(f"{i}.md"), "r") as f:

0 commit comments

Comments
 (0)