1

[ci/test] simplify _build_and_file

This commit is contained in:
Motiejus Jakštys 2021-10-21 11:38:24 +03:00
parent 68f67edb2d
commit 5090715b97

View File

@ -4,12 +4,8 @@ cd "$(dirname "$0")/.."
. .envrc . .envrc
_build_and_file() { _build_and_file() {
bazel build --color=yes --curses=yes "$@" file $(bazel run --color=yes --curses=yes --run_under=echo "$@") | \
local execpath tee /dev/stderr
execpath=$(bazel aquery "$@" 2>/dev/null | \
awk "/action 'GoLink/{f=1};/Outputs: /&&f{print;exit}" | \
awk -F'\\[|\\]' '{print $2}')
file "$execpath" | tee /dev/stderr
} }
_test() { _test() {