crosvm/tools/impl
Dennis Kempin 7f03a70790 Parallelize tools/fmt
cargo fmt will only format those files that are referenced by
crosvm. To really catch all files in our source tree, we need to
run rustfmt directly.

This will check files multiple times, since rustfmt will follow
included modules. But is still faster that cargo fmt.

To run these in parallel, this change adds some tools to common.py
for parallel execution of commands.

This reduces the fmt check time from ~9s to 1.5s.

I verified that we are actually catching all files now by adding a
newline to all .rs files in our sources tree. The formatter reverted
them all.

BUG=b:218559722
TEST=./tools/fmt

Change-Id: If721d837ebc9eee3ce28fa7f439ab0bcc0b993cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3474926
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2022-03-07 22:50:12 +00:00
..
dev_container Pythonify clippy/fmt scripts and add common.py 2022-02-15 22:01:58 +00:00
testvm Make aarch64 vm usable for running armhf binaries. 2021-12-09 01:08:45 +00:00
bindgen-common.sh tools/bindgen-all-the-things: add script to regenerate bindings 2022-03-03 23:47:03 +00:00
check_code_hygiene.py Check for crlf line endings 2022-03-01 00:51:16 +00:00
common.py Parallelize tools/fmt 2022-03-07 22:50:12 +00:00
test_config.py TestRunner: Enable some no-op tests crates 2022-02-28 21:38:13 +00:00
test_runner.py Check for crlf line endings 2022-03-01 00:51:16 +00:00
test_target.py Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
testvm.py Add test runner ./tools/run_tests 2021-10-15 22:12:03 +00:00