Skip to content

Commit

Permalink
try again to fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Mar 9, 2024
1 parent 3addcf2 commit dfc569f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/smoke/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ sh_test(
name = "test",
srcs = ["proto_descriptor_test.sh"],
data = ["foo_proto"],
deps = ["@bazel_tools//tools/bash/runfiles"],
)
14 changes: 13 additions & 1 deletion e2e/smoke/proto_descriptor_test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
#!/usr/bin/env bash

grep msg $TEST_SRCDIR/$TEST_WORKSPACE/foo_proto-descriptor-set.proto.bin
# --- begin runfiles.bash initialization v3 ---
# Copy-pasted from the Bazel Bash runfiles library v3.
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 || \
{ echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
# --- end runfiles.bash initialization v3 ---

grep msg $(rlocation $TEST_WORKSPACE/foo_proto-descriptor-set.proto.bin)

0 comments on commit dfc569f

Please sign in to comment.