summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2019-06-18 18:12:30 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-19 21:35:11 +0000
commite4fdb9124042cb21ecfb3df8004f0697756bbbad (patch)
treed8fd360b1ff9b927b3aa0f5b9e49f362783f80cb
parentcf62299c34d7fbb19187acef57264c7eec9ac2a2 (diff)
downloadchrome-ec-stabilize-kukui-12285.B.tar.gz
util: presubmit_check.sh: Exclude OWNERS file.stabilize-kukui-12285.B
The OWNERS file isn't used by `make buildall`, so it shouldn't cause a developer to run `make buildall` before submitting a change to the file. This commit simply filters out changes to the OWNERS file from the presubmit_check script. BUG=None BRANCH=None TEST=Modify OWNERS. Try to upload and verify that the presubmit check does not flag it. Change-Id: I71452ac0a751335f815c707b554a2578c532b476 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1666754 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rwxr-xr-xutil/presubmit_check.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/presubmit_check.sh b/util/presubmit_check.sh
index 306a1a632d..822633f0f8 100755
--- a/util/presubmit_check.sh
+++ b/util/presubmit_check.sh
@@ -23,6 +23,8 @@ changed=$(echo "${changed}" | grep -v util/flash_ec)
changed=$(echo "${changed}" | grep -v util/uart_stress_tester.sh)
# Filter out this file itself.
changed=$(echo "${changed}" | grep -v util/presubmit_check.sh)
+# Filter out the OWNERS file.
+changed=$(echo "${changed}" | grep -v OWNERS)
if [[ -n "${changed}" ]]; then
echo "Files have changed since last time unit tests passed:"
echo "${changed}" | sed -e 's/^/ /'