Skip to content

Commit

Permalink
more for wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed Nov 27, 2023
1 parent a3238e2 commit 54d86b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/scripts/test_impacted_targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ echo -e "${info_color}Running bazel ${BAZEL_TEST_COMMAND} on ${target_count} tar

echo
ret=0
_bazel "${BAZEL_TEST_COMMAND}" --target_pattern_file="${tempdir}/filtered_targets.txt" || ret=$?
# trunk-ignore(shellcheck): We want to support additional args here.
_bazel ${BAZEL_TEST_COMMAND} --target_pattern_file="${tempdir}/filtered_targets.txt" || ret=$?

# Lazily cleanup tempdir since we rely on other wrappers' trap invocations
if [[ -n ${tempdir+x} ]]; then
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/test_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ touch "${GITHUB_OUTPUT}"
. "${scripts_dir}/compute_impacted_targets.sh"

IMPACTED_TARGETS_FILE=$(awk -F "=" '$1=="impacted_targets_out" {print $2}' "${GITHUB_OUTPUT}")
BAZEL_TEST_COMMAND="test"
BAZEL_TEST_COMMAND="test --test_tag_filters=-manual"
BAZEL_KIND_FILTER=".+_library|.+_binary|.+_test"
BAZEL_SCOPE_FILTER=""
BAZEL_NEGATIVE_KIND_FILTER="generated file"
Expand Down

0 comments on commit 54d86b3

Please sign in to comment.