Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Aug 8, 2023
1 parent 99f863f commit d1a19bf
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/test/shell/integration/runfiles_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ EOF

function test_manifest_action_reruns_on_output_base_change() {
CURRENT_DIRECTORY=$(pwd)
if $is_windows; then
CURRENT_DIRECTORY=$(cygpath -m "${CURRENT_DIRECTORY}")
fi

OUTPUT_BASE="${CURRENT_DIRECTORY}/test/outputs/__main__"
TEST_FOLDER_1="${CURRENT_DIRECTORY}/test/test1"
Expand All @@ -451,18 +454,7 @@ echo "Hello World"
EOF
chmod +x hello_world.sh

cd "${TEST_FOLDER_2}"
touch WORKSPACE
cat > BUILD <<EOF
sh_binary(
name = "hello_world",
srcs = ["hello_world.sh"],
)
EOF
cat > hello_world.sh <<EOF
echo "Hello World"
EOF
chmod +x hello_world.sh
cp "${TEST_FOLDER_1}"/* "${TEST_FOLDER_2}/"

cd "${TEST_FOLDER_1}"
bazel --output_base="${OUTPUT_BASE}" build //...
Expand Down

0 comments on commit d1a19bf

Please sign in to comment.