]> code.ossystems Code Review - openembedded-core.git/commit
insane.bbclass: Add a check for directories that are expected to be empty
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Sat, 13 Nov 2021 12:25:16 +0000 (13:25 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 16 Nov 2021 05:09:56 +0000 (13:09 +0800)
commit9f3fbfc02ae6fadffbcc1bda1fa75dfe140d05c5
tree239dbe11e6c1f284a5a1ba6c40435a80fd511728
parentd7fe71c0fa0f368037b20d423c4c45d91c108a8c
insane.bbclass: Add a check for directories that are expected to be empty

The empty-dirs QA check verifies that all directories specified in
QA_EMPTY_DIRS are empty. It is possible to specify why a directory is
expected to be empty by defining QA_EMPTY_DIRS_RECOMMENDATION:<path>,
which will then be included in the error message if the directory is
not empty. If it is not specified for a directory, then "but it is
expected to be empty" will be used.

Compared to the corresponding patch for master, there are two
differences:

* "/var/volatile" is not added to QA_EMPTY_DIRS by default, and
* "empty-dirs" is not enabled in ERROR_QA (nor in WARN_QA).

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/insane.bbclass
meta/conf/documentation.conf