Skip to content

Commit

Permalink
Fix test and unflip
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jan 31, 2025
1 parent 96706de commit 7bb7210
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public Converter() {

@Option(
name = "file_write_strategy",
defaultValue = "lazy",
defaultValue = "eager",
converter = FileWriteStrategy.Converter.class,
documentationCategory = OptionDocumentationCategory.REMOTE,
effectTags = {OptionEffectTag.EXECUTION},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,18 @@ public void downloadMinimal_fileWrite(
srcs = [':foo'],
outs = ['out/gen.txt'],
cmd = \"""
[ -x $(location :foo) ] || { echo "unexpectedly not executable"; exit 1; }
%s
cat $(location :foo) $(location :foo) > $@
\""",
)
"""
.formatted(isExecutable ? "True" : "False"));
.formatted(
isExecutable ? "True" : "False",
OS.getCurrent() == OS.WINDOWS
? ""
: """
[ -x $(location :foo) ] || { echo "unexpectedly not executable"; exit 1; }
"""));

addOptions("--file_write_strategy=" + fileWriteStrategy);

Expand Down

0 comments on commit 7bb7210

Please sign in to comment.