From fb7982b3aff3ce5ef5145476b0ed802a367de505 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Sun, 18 Jun 2023 15:11:40 -0700 Subject: [PATCH] Add PR check for added driver with no added image --- tools/check_commit.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/check_commit.sh b/tools/check_commit.sh index d9cc01dc..6672c844 100755 --- a/tools/check_commit.sh +++ b/tools/check_commit.sh @@ -68,4 +68,9 @@ if git diff chirp/locale | grep '^\+[^#+]' | grep -v POT-Creation; then fail Locale files need updating fi +added_files=$(git diff --name-only --diff-filter=A ${BASE}.. 2>&1) +if echo $added_files | grep -q chirp.drivers && ! echo $added_files | grep -q tests.images; then + fail All new drivers should include a test image +fi + exit $RETCODE