[ci/test] simplify _build_and_file
This commit is contained in:
parent
68f67edb2d
commit
5090715b97
8
ci/test
8
ci/test
@ -4,12 +4,8 @@ cd "$(dirname "$0")/.."
|
||||
. .envrc
|
||||
|
||||
_build_and_file() {
|
||||
bazel build --color=yes --curses=yes "$@"
|
||||
local execpath
|
||||
execpath=$(bazel aquery "$@" 2>/dev/null | \
|
||||
awk "/action 'GoLink/{f=1};/Outputs: /&&f{print;exit}" | \
|
||||
awk -F'\\[|\\]' '{print $2}')
|
||||
file "$execpath" | tee /dev/stderr
|
||||
file $(bazel run --color=yes --curses=yes --run_under=echo "$@") | \
|
||||
tee /dev/stderr
|
||||
}
|
||||
|
||||
_test() {
|
||||
|
Loading…
Reference in New Issue
Block a user