10000 Fix copybara to also transform tests with strange names. · coderabbit-test/bazel@7a489b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a489b1

Browse files
meteorcloudycopybara-github
authored andcommitted
Fix copybara to also transform tests with strange names.
Working towards: bazelbuild#18957 PiperOrigin-RevId: 555218827 Change-Id: I43dd9a581bec70f179c07d98f2f17d1cb4e4252e
1 parent 53c3518 commit 7a489b1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/test/shell/integration/execution_phase_tests.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
# --- begin runfiles.bash initialization v3 ---
2222
# Copy-pasted from the Bazel Bash runfiles library v3.
23-
set -uo pipefail; set +e; f=io_bazel/tools/bash/runfiles/runfiles.bash
24-
source "${TEST_SRCDIR:-/dev/null}/$f" 2>/dev/null || \
25-
source "$(grep -sm1 "^$f " "${TEST_SRCDIR:-/dev/null}/MANIFEST" | cut -f2- -d' ')" 2>/dev/null || \
23+
set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash
24+
source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
25+
source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \
2626
source "$0.runfiles/$f" 2>/dev/null || \
2727
source "$(grep -sm1 "^$f " "$0.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
2828
source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
@@ -457,3 +457,4 @@ EOF
457457
}
458458

459459
run_suite "Integration tests of ${PRODUCT_NAME} using the execution phase."
460+

src/test/shell/integration/target_compatible_with_test_external_repo.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
# --- begin runfiles.bash initialization v3 ---
2020
# Copy-pasted from the Bazel Bash runfiles library v3.
21-
set -uo pipefail; set +e; f=io_bazel/tools/bash/runfiles/runfiles.bash
22-
source "${TEST_SRCDIR:-/dev/null}/$f" 2>/dev/null || \
23-
source "$(grep -sm1 "^$f " "${TEST_SRCDIR:-/dev/null}/MANIFEST" | cut -f2- -d' ')" 2>/dev/null || \
21+
set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash
22+
source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
23+
source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \
2424
source "$0.runfiles/$f" 2>/dev/null || \
2525
source "$(grep -sm1 "^$f " "$0.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
2626
source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \

0 commit comments

Comments
 (0)
0