summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2021-09-14 11:20:56 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-15 23:14:20 +0000
commit339a38341d4a33b4df1e532228bae25756805c27 (patch)
tree92afb64b71f504ea4155cc3f80db10bb0cef5ba8
parentf1d74823bf0d3d5eefc945a5b55f9435dad81f6b (diff)
downloadchrome-ec-339a38341d4a33b4df1e532228bae25756805c27.tar.gz
zmake: Show black output
When the CQ fails because of code formatting, it is hard to figure out what to fix. Change run_tests.sh to show the diff. BUG=None TEST=Ran run_tests.sh locally BRANCH=None Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I05cc976919cad6f6e14e35843451845e0f8038d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3160501 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rwxr-xr-xzephyr/zmake/run_tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/zmake/run_tests.sh b/zephyr/zmake/run_tests.sh
index e1de85e2b4..60e93cdf1a 100755
--- a/zephyr/zmake/run_tests.sh
+++ b/zephyr/zmake/run_tests.sh
@@ -29,7 +29,7 @@ pytest --hypothesis-profile=cq .
isort --check .
# Check black formatting.
-black --check .
+black --check --diff .
# Check flake8 reports no issues.
flake8 .