-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[util] Add script to check functioning of BLOCKFILE
The new script outputs warnings if any pattern in the BLOCKFILE doesn't match a file in the repository tree along with a full list of files in the repository tree that are blocked. Signed-off-by: Greg Chadwick <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# Copyright lowRISC contributors. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
echo "Checking BLOCKFILE. This will output all files blocked from changes and " | ||
echo "a warning if there are any patterns in BLOCKFILES which don't match any " | ||
echo "file. Must be run from repository root." | ||
|
||
# Produce a list of all files, chop off the first two characters which as './' | ||
# as the change blocker script doesn't work correctly with them. | ||
find -type f | cut -c 3- > ot-filelist | ||
|
||
./ci/scripts/check-pr-changes-allowed.py \ | ||
--plain-block-msg \ | ||
--report-unused-patterns \ | ||
ot-filelist |