summaryrefslogtreecommitdiff
path: root/zephyr/firmware_builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/firmware_builder.py')
-rwxr-xr-xzephyr/firmware_builder.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/firmware_builder.py b/zephyr/firmware_builder.py
index d04941f752..22d882094b 100755
--- a/zephyr/firmware_builder.py
+++ b/zephyr/firmware_builder.py
@@ -133,6 +133,10 @@ def test(opts):
# proceeding.
subprocess.run([zephyr_dir / 'zmake' / 'run_tests.sh'], check=True)
+ # Run formatting checks on all BUILD.py files.
+ config_files = zephyr_dir.rglob("**/BUILD.py")
+ subprocess.run(["black", "--diff", "--check", *config_files], check=True)
+
subprocess.run(['zmake', '-D', 'testall'], check=True)
# Run the test with coverage also, as sometimes they behave differently.