apparmor/tests
Georgia Garcia 81f0b84da5 tests: fix feature checking if it's a directory
The test to check if the kernel supports a feature covers two cases:
1. The file/directory indicates a feature is supported.
2. The feature is supported if it's in the contents of the file.

When the intended check is for case 1, and the file does not exist,
then the code checks if it's case 2, but since it was not supposed to
be, we end up grepping a directory, causing an error message. Fix this
by checking if we're grepping a file.

Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
2023-07-19 17:46:13 -03:00
..
bin Break lines before binary operators. 2022-08-21 11:15:07 -04:00
regression tests: fix feature checking if it's a directory 2023-07-19 17:46:13 -03:00
stress tests: fix make clean target 2018-11-16 14:16:07 -08:00
checkstyle2junit.xslt CI: add shellcheck job, with minimum severity set to error 2022-02-13 19:43:48 +00:00
Makefile all: Use the MAKE variable 2017-11-01 23:22:53 +00:00