Skip to contentSkip to conversation

Documentation: Kunit: Use full path to .kunitconfig

PATCH Superseded Khalid Masum 3 participants 4 messages Sep 28, 2022 – Sep 29, 2022

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: Kunit: Use full path to .kunitconfig

The numbered list contains full path to every files that need to be modified or created in order to implement misc-example kunit test. Except for .kunitconfig. Which might make a newcommer confused about where the file exists. Since there are multiple .kunitconfig files.

Fix this by using the full path to .kunitconfig.

---
 Documentation/dev-tools/kunit/start.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/dev-tools/kunit/start.rst +1 -1
index 867a4bba6bf6..69361065cda6 100644
@@ -217,7 +217,7 @@ Now we are ready to write the test cases.
 
 	obj-$(CONFIG_MISC_EXAMPLE_TEST) += example_test.o
 
-4. Add the following lines to ``.kunitconfig``:
+4. Add the following lines to ``.kunit/.kunitconfig``:
 
 .. code-block:: none
 
Signature · 1 line
2.37.3
Reviewed-by on v1 1/1
#1 lore raw

+CC Sadiya

Quoted 4 lines · Khalid Masum

The numbered list contains full path to every files that need to be modified or created in order to implement misc-example kunit test. Except for .kunitconfig. Which might make a newcommer confused about

Nit: Spelling of "newcomer".

(I wouldn't bother sending out a new version just for this typo in the commit description. If you need to do another version for another reason, though, please fix it then.)

Quoted 6 lines

where the file exists. Since there are multiple .kunitconfig files.

Fix this by using the full path to .kunitconfig.

---

Thanks very much for your patch. This seems sensible to me.

Cheers,
-- David

Quoted 19 lines
 Documentation/dev-tools/kunit/start.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/dev-tools/kunit/start.rst +1 -2
index 867a4bba6bf6..69361065cda6 100644
@@ -217,7 +217,7 @@ Now we are ready to write the test cases.
 
        obj-$(CONFIG_MISC_EXAMPLE_TEST) += example_test.o
 
-4. Add the following lines to ``.kunitconfig``:
+4. Add the following lines to ``.kunit/.kunitconfig``:
 
 .. code-block:: none
 
--

2.37.3

#2 lore raw
In reply to Khalid Masum
Quoted 7 lines · Khalid Masum

The numbered list contains full path to every files that need to be modified or created in order to implement misc-example kunit test. Except for .kunitconfig. Which might make a newcommer confused about where the file exists. Since there are multiple .kunitconfig files.

Fix this by using the full path to .kunitconfig.

Better say:

```
The fourth list item on writing test cases instructs adding Kconfig
fragments to .kunitconfig, which should have been full path to the file
(.kunit/.kunitconfig).
```
Quoted 5 lines

-4. Add the following lines to ``.kunitconfig``:
+4. Add the following lines to ``.kunit/.kunitconfig``:

.. code-block:: none

I think "Add the following lines" should be changed to something more descriptive in regards to what these lines are about (which in this case should be "Add following configuration fragments").

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw

Hi all,

Thanks for reviewing. I shall send a v2 with the suggested changes.

Thanks,
-- Khalid Masum