Re: checking for "config" file existence.

From: Shuah Khan
Date: Mon Nov 16 2020 - 13:33:29 EST


On 11/12/20 10:40 AM, Jeffrin Jose T wrote:
hello,

i wrote a small program to check for the existence of "config" files
for testing projects under kselftest framework.

chmod 755 test_config.py
This file should be located in "tools/testing/selftests"
This can be run as "./test_config.py"

Why do we need a dedicated script when you can do it with:

cd tools/testing/selftests; find . -name config

I see that your script also prints if config doesn't exist.
It is not a failure not have config as config is necessary
only when a test has config option dependencies.

What does this script attempting to solve?

thanks,
-- Shuah