blob: 1a758dfe57af94f4dfaf61cc9a2ef9de32eb85e3 [file] [log] [blame] [edit]
#!/bin/bash
# Copyright 2025 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Format RBE metrics summary to JSON for infra recipes to consume.
readonly script="$0"
# assume script is always with path prefix, e.g. "./$script"
readonly script_dir="${script%/*}"
# Get path to python interpreter.
source "$script_dir"/common-setup.sh
exec "$python" -S "$script_dir"/build_summary.py --format=json "$@"