Skip to content

Commit 581f6f4

Browse files
committed
fix(tests): clear read-only fixture attributes before Windows cleanup
1 parent a4bdd3d commit 581f6f4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_vt_candidate_selection_contract.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,10 @@ linux_artifacts = fix / "linux-artifacts"
477477
shutil.copytree(artifacts, linux_artifacts, symlinks=True)
478478
for provenance in provenance_paths(linux_artifacts):
479479
if not provenance.parent.name.startswith("linux-"):
480+
# Copied candidate modes become FILE_ATTRIBUTE_READONLY on Windows.
481+
for candidate in provenance.parent.rglob("*"):
482+
if candidate.is_file() and not candidate.is_symlink():
483+
candidate.chmod(0o700)
480484
shutil.rmtree(provenance.parent)
481485
# Counts are bound to the chosen set: 4 targets / 12 candidates, never 8 / 24.
482486
result = run(stage_tool, linux_artifacts, fix / "linux-bad-count", "--targets", LINUX_CSV,

0 commit comments

Comments
 (0)