summaryrefslogtreecommitdiff
path: root/PRESUBMIT.cfg
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@google.com>2022-12-06 18:19:16 -0500
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-12-15 10:22:41 +0000
commit47594a266056d8fc0acc94b3fdf39c261086a0f3 (patch)
treee41c43989d7e74e147c243ee8417b666a9b74a32 /PRESUBMIT.cfg
parent167d3873450dcd5d735a07d647462829f16b2061 (diff)
downloadvboot-47594a266056d8fc0acc94b3fdf39c261086a0f3.tar.gz
Port sign_uefi.sh to Python
Shell scripts are hard to modify and hard to test, so port sign_uefi.sh to Python. This is a fairly direct port that attempts to keep all the behavior the same. In particular, there are no hard errors for missing EFI/kernel files, or for failing to sign one of those files if it does exist. It might be good to make the script more strict in the future, but for now try to match the existing behavior. Nothing actually calls the new script yet. Also enable `black_check` in `PRESUBMIT.cfg` to enforce formatting. BRANCH=none BUG=b:261631233 TEST=make runtests TEST=cros lint scripts/image_signing/sign_uefi*.py Change-Id: I4b9b86607cc403779b0504758dd097b0d7237fef Signed-off-by: Nicholas Bishop <nicholasbishop@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4083506 Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'PRESUBMIT.cfg')
-rw-r--r--PRESUBMIT.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/PRESUBMIT.cfg b/PRESUBMIT.cfg
index 9f665453..5ffa5f93 100644
--- a/PRESUBMIT.cfg
+++ b/PRESUBMIT.cfg
@@ -1,4 +1,5 @@
[Hook Overrides]
+black_check: true
branch_check: true
cargo_clippy_check: true
checkpatch_check: true