Skip to content

Commit 14ee5cf

Browse files
sj-awsshuahkh
authored andcommitted
kunit: Rename 'kunitconfig' to '.kunitconfig'
This commit renames 'kunitconfig' to '.kunitconfig' so that it can be automatically ignored by git and do not disturb people who want to type 'kernel/' by pressing only the 'k' and then 'tab' key. Signed-off-by: SeongJae Park <sjpark@amazon.de> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Tested-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 609952c commit 14ee5cf

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Documentation/dev-tools/kunit/start.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,16 @@ The wrapper can be run with:
2424
For more information on this wrapper (also called kunit_tool) checkout the
2525
:doc:`kunit-tool` page.
2626

27-
Creating a kunitconfig
28-
======================
27+
Creating a .kunitconfig
28+
=======================
2929
The Python script is a thin wrapper around Kbuild. As such, it needs to be
30-
configured with a ``kunitconfig`` file. This file essentially contains the
30+
configured with a ``.kunitconfig`` file. This file essentially contains the
3131
regular Kernel config, with the specific test targets as well.
3232

3333
.. code-block:: bash
3434
3535
cd $PATH_TO_LINUX_REPO
36-
cp arch/um/configs/kunit_defconfig kunitconfig
37-
38-
You may want to add kunitconfig to your local gitignore.
36+
cp arch/um/configs/kunit_defconfig .kunitconfig
3937
4038
Verifying KUnit Works
4139
---------------------
@@ -150,7 +148,7 @@ and the following to ``drivers/misc/Makefile``:
150148
151149
obj-$(CONFIG_MISC_EXAMPLE_TEST) += example-test.o
152150
153-
Now add it to your ``kunitconfig``:
151+
Now add it to your ``.kunitconfig``:
154152

155153
.. code-block:: none
156154

tools/testing/kunit/kunit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def main(argv, linux=None):
108108
type=str, default='', metavar='build_dir')
109109

110110
run_parser.add_argument('--defconfig',
111-
help='Uses a default kunitconfig.',
111+
help='Uses a default .kunitconfig.',
112112
action='store_true')
113113

114114
cli_args = parser.parse_args(argv)

tools/testing/kunit/kunit_kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import kunit_config
1515

1616
KCONFIG_PATH = '.config'
17-
kunitconfig_path = 'kunitconfig'
17+
kunitconfig_path = '.kunitconfig'
1818

1919
class ConfigError(Exception):
2020
"""Represents an error trying to configure the Linux kernel."""
@@ -111,7 +111,7 @@ def build_config(self, build_dir):
111111
return True
112112

113113
def build_reconfig(self, build_dir):
114-
"""Creates a new .config if it is not a subset of the kunitconfig."""
114+
"""Creates a new .config if it is not a subset of the .kunitconfig."""
115115
kconfig_path = get_kconfig_path(build_dir)
116116
if os.path.exists(kconfig_path):
117117
existing_kconfig = kunit_config.Kconfig()

0 commit comments

Comments
 (0)