diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-06 16:31:00 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-12 18:30:04 +0200 |
commit | 7e503da6c18c50e03d3cb1f5d7490f3c805f3b63 (patch) | |
tree | 28ac42340ae5aa1d368b6d5a126763ed4ab2bfae /test/end-to-end/built-in-rules | |
parent | fe4006fce755432b1ae3a273873f3649512c7f94 (diff) | |
download | justbuild-7e503da6c18c50e03d3cb1f5d7490f3c805f3b63.tar.gz |
Tests: Assume only parents of out_dirs exist
... instead of the full out_dir path, which is not
guaranteed by the RBE protocol.
Diffstat (limited to 'test/end-to-end/built-in-rules')
-rwxr-xr-x | test/end-to-end/built-in-rules/generic_out_dirs.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/end-to-end/built-in-rules/generic_out_dirs.sh b/test/end-to-end/built-in-rules/generic_out_dirs.sh index c4dd81da..a2ad058d 100755 --- a/test/end-to-end/built-in-rules/generic_out_dirs.sh +++ b/test/end-to-end/built-in-rules/generic_out_dirs.sh @@ -21,7 +21,10 @@ mkdir -p lcl-build cat <<EOF > TARGETS { "gen_out_dirs": - {"type": "generic", "cmds": ["echo foo > out/foo.txt"], "out_dirs": ["out"]} + { "type": "generic" + , "cmds": ["mkdir -p out", "echo foo > out/foo.txt"] + , "out_dirs": ["out"] + } , "read_out_dirs": { "type": "generic" , "cmds": ["cat out/foo.txt > bar.txt"] @@ -29,7 +32,7 @@ cat <<EOF > TARGETS , "deps": ["gen_out_dirs"] } , "missing_outs_and_out_dirs": - {"type": "generic", "cmds": ["echo foo > out/foo.txt"]} + {"type": "generic", "cmds": ["mkdir -p out", "echo foo > out/foo.txt"]} , "out_dirs_contains_a_file": {"type": "generic", "cmds": ["echo foo > foo.txt"], "out_dirs": ["foo.txt"]} , "outs_contains_a_dir": |