Skip to content

[lit] Fix filter-failed-rerun.py on readonly FSes#177075

Merged
boomanaiden154 merged 1 commit intollvm:mainfrom
boomanaiden154:fix-lit-test-bazel
Jan 21, 2026
Merged

[lit] Fix filter-failed-rerun.py on readonly FSes#177075
boomanaiden154 merged 1 commit intollvm:mainfrom
boomanaiden154:fix-lit-test-bazel

Conversation

@boomanaiden154
Copy link
Copy Markdown
Contributor

This test invokes lit in a directory and then tries to overwrite fail.txt within that directory. With the project sources mounted as read-only, fail.txt ends up being marked readonly, which causes cp to fail without -f. Use cp -f to ensure we overwrite the existing fail.txt.

This test invokes lit in a directory and then tries to overwrite
fail.txt within that directory. With the project sources mounted
as read-only, fail.txt ends up being marked readonly, which causes
cp to fail without -f. Use cp -f to ensure we overwrite the existing
fail.txt.
@llvmbot
Copy link
Copy Markdown
Member

llvmbot commented Jan 21, 2026

@llvm/pr-subscribers-testing-tools

Author: Aiden Grossman (boomanaiden154)

Changes

This test invokes lit in a directory and then tries to overwrite fail.txt within that directory. With the project sources mounted as read-only, fail.txt ends up being marked readonly, which causes cp to fail without -f. Use cp -f to ensure we overwrite the existing fail.txt.


Full diff: https://github.com/llvm/llvm-project/pull/177075.diff

1 Files Affected:

  • (modified) llvm/utils/lit/tests/filter-failed-rerun.py (+1-1)
diff --git a/llvm/utils/lit/tests/filter-failed-rerun.py b/llvm/utils/lit/tests/filter-failed-rerun.py
index 7db12c26a02ff..1513f638371f7 100644
--- a/llvm/utils/lit/tests/filter-failed-rerun.py
+++ b/llvm/utils/lit/tests/filter-failed-rerun.py
@@ -6,7 +6,7 @@
 #
 # RUN: not %{lit} %t | FileCheck %s --check-prefix=CHECK-FIRST
 #
-# RUN: cp %t%{fs-sep}pass.txt %t%{fs-sep}fail.txt
+# RUN: cp -f %t%{fs-sep}pass.txt %t%{fs-sep}fail.txt
 # RUN: not %{lit} %t | FileCheck %s --check-prefix=CHECK-SECOND
 # RUN: not %{lit} --filter-failed %t | FileCheck %s --check-prefix=CHECK-THIRD
 

@boomanaiden154 boomanaiden154 enabled auto-merge (squash) January 21, 2026 01:42
@boomanaiden154 boomanaiden154 merged commit 8bb659f into llvm:main Jan 21, 2026
11 of 13 checks passed
@boomanaiden154 boomanaiden154 deleted the fix-lit-test-bazel branch January 21, 2026 02:02
BStott6 pushed a commit to BStott6/llvm-project that referenced this pull request Jan 22, 2026
This test invokes lit in a directory and then tries to overwrite
fail.txt within that directory. With the project sources mounted as
read-only, fail.txt ends up being marked readonly, which causes cp to
fail without -f. Use cp -f to ensure we overwrite the existing fail.txt.
Harrish92 pushed a commit to Harrish92/llvm-project that referenced this pull request Jan 23, 2026
This test invokes lit in a directory and then tries to overwrite
fail.txt within that directory. With the project sources mounted as
read-only, fail.txt ends up being marked readonly, which causes cp to
fail without -f. Use cp -f to ensure we overwrite the existing fail.txt.
Harrish92 pushed a commit to Harrish92/llvm-project that referenced this pull request Jan 24, 2026
This test invokes lit in a directory and then tries to overwrite
fail.txt within that directory. With the project sources mounted as
read-only, fail.txt ends up being marked readonly, which causes cp to
fail without -f. Use cp -f to ensure we overwrite the existing fail.txt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants