Skip to content

Commit 8bb659f

Browse files
[lit] Fix filter-failed-rerun.py on readonly FSes (llvm#177075)
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.
1 parent 3f64e18 commit 8bb659f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/lit/tests/filter-failed-rerun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# RUN: not %{lit} %t | FileCheck %s --check-prefix=CHECK-FIRST
88
#
9-
# RUN: cp %t%{fs-sep}pass.txt %t%{fs-sep}fail.txt
9+
# RUN: cp -f %t%{fs-sep}pass.txt %t%{fs-sep}fail.txt
1010
# RUN: not %{lit} %t | FileCheck %s --check-prefix=CHECK-SECOND
1111
# RUN: not %{lit} --filter-failed %t | FileCheck %s --check-prefix=CHECK-THIRD
1212

0 commit comments

Comments
 (0)