ninja: use -t query to find test target

This commit is contained in:
Matthew Bauer 2018-11-18 18:07:56 -06:00
parent 2c47a4229f
commit 4ebab3de1e

View File

@ -50,7 +50,7 @@ ninjaCheckPhase() {
runHook preCheck
if [ -z "${checkTarget:-}" ]; then
if ninja -n test >/dev/null 2>&1; then
if ninja -t query test >/dev/null 2>&1; then
checkTarget=test
fi
fi