Skip to content

Commit

Permalink
Allow the fix_all script to take a $0 pattern argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez committed Jul 13, 2023
1 parent 0968582 commit 7a58044
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bzl/fix_api/fix_all.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#! /usr/bin/env bash

PATTERN="${1:-//...}"

if [ ! -z "$BUILD_WORKING_DIRECTORY" ]; then
pushd $BUILD_WORKING_DIRECTORY
fi

bazel query //... | \
bazel query $PATTERN | \
grep '.fix$' | \
sed 's/\.fix$//g' | \
xargs bazel test --keep_going | \
Expand Down

0 comments on commit 7a58044

Please sign in to comment.