From 0345a202023caaba4210ea764ed95693d343b098 Mon Sep 17 00:00:00 2001 From: David Chalco <59750547+dachalco@users.noreply.github.com> Date: Fri, 29 Jan 2021 18:58:55 -0800 Subject: [PATCH] incorporate updates from common (#255) * incorporate updates from common * empty commit to rerun check --- .github/scripts/kernel_checker.py | 6 +++++- .github/workflows/kernel-checks.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/scripts/kernel_checker.py b/.github/scripts/kernel_checker.py index 91620ec53..3daca3e61 100755 --- a/.github/scripts/kernel_checker.py +++ b/.github/scripts/kernel_checker.py @@ -83,7 +83,11 @@ def main(): checker.ignoreFile(*KERNEL_IGNORED_FILES) checker.ignoreFile(os.path.split(__file__)[-1]) - return checker.processArgs(args) + rc = checker.processArgs(args) + if rc: + checker.showHelp(__file__) + + return rc if __name__ == '__main__': exit(main()) diff --git a/.github/workflows/kernel-checks.yml b/.github/workflows/kernel-checks.yml index 4eb63055f..9e6890830 100644 --- a/.github/workflows/kernel-checks.yml +++ b/.github/workflows/kernel-checks.yml @@ -41,7 +41,7 @@ jobs: - name: Check File Headers run: | mv tools/.github/scripts/common inspect/.github/scripts + pip install -r inspect/.github/scripts/common/requirements.txt cd inspect .github/scripts/kernel_checker.py --json ${HOME}/files_modified.json ${HOME}/files_added.json ${HOME}/files_renamed.json exit $? -