[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
|
. .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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user