Skip to content

Commit

Permalink
Fix copybara to also transform tests with strange names.
Browse files Browse the repository at this point in the history
Working towards: bazelbuild#18957

PiperOrigin-RevId: 555218827
Change-Id: I43dd9a581bec70f179c07d98f2f17d1cb4e4252e
  • Loading branch information
meteorcloudy authored and copybara-github committed Aug 9, 2023
1 parent 53c3518 commit 7a489b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/test/shell/integration/execution_phase_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

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

0 comments on commit 7a489b1

Please sign in to comment.