2023-03-30 11:40:25

by Javier Martinez Canillas

[permalink] [raw]
Subject: [PATCH] .gitignore: Exclude KUnit config dot-files

There's a rule to ignore all the dot-files (.*) but we want to exclude the
config files used by KUnit (.kunitconfig) since those are usually added to
allow executing test suites without having to enable custom config symbols.

Signed-off-by: Javier Martinez Canillas <[email protected]>
---

.gitignore | 1 +
1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index 70ec6037fa7a..7f86e0837909 100644
--- a/.gitignore
+++ b/.gitignore
@@ -103,6 +103,7 @@ modules.order
!.get_maintainer.ignore
!.gitattributes
!.gitignore
+!.kunitconfig
!.mailmap
!.rustfmt.toml


base-commit: ffe78bbd512166e0ef1cc4858010b128c510ed7d
--
2.40.0


2023-03-30 11:40:46

by Maíra Canal

[permalink] [raw]
Subject: Re: [PATCH] .gitignore: Exclude KUnit config dot-files

Hi Javier,

On 3/30/23 08:27, Javier Martinez Canillas wrote:
> There's a rule to ignore all the dot-files (.*) but we want to exclude the
> config files used by KUnit (.kunitconfig) since those are usually added to
> allow executing test suites without having to enable custom config symbols.
>
> Signed-off-by: Javier Martinez Canillas <[email protected]>

This seems like a pretty nice improvement for the KUnit development.

Reviewed-by: Maíra Canal <[email protected]>

Best Regards,
- Maíra Canal

> ---
>
> .gitignore | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/.gitignore b/.gitignore
> index 70ec6037fa7a..7f86e0837909 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -103,6 +103,7 @@ modules.order
> !.get_maintainer.ignore
> !.gitattributes
> !.gitignore
> +!.kunitconfig
> !.mailmap
> !.rustfmt.toml
>
>
> base-commit: ffe78bbd512166e0ef1cc4858010b128c510ed7d

2023-03-30 15:36:42

by Daniel Latypov

[permalink] [raw]
Subject: Re: [PATCH] .gitignore: Exclude KUnit config dot-files

On Thu, Mar 30, 2023 at 4:27 AM Javier Martinez Canillas
<[email protected]> wrote:
>
> There's a rule to ignore all the dot-files (.*) but we want to exclude the
> config files used by KUnit (.kunitconfig) since those are usually added to
> allow executing test suites without having to enable custom config symbols.
>
> Signed-off-by: Javier Martinez Canillas <[email protected]>

FYI, Andy has a version of this patch from back in Jan here,
https://lore.kernel.org/linux-kselftest/[email protected]/

I don't think anyone was adamantly opposed to it, but it's just been
sitting on the list waiting.

Daniel

2023-03-30 16:57:21

by Javier Martinez Canillas

[permalink] [raw]
Subject: Re: [PATCH] .gitignore: Exclude KUnit config dot-files

Daniel Latypov <[email protected]> writes:

Hello Daniel,

> On Thu, Mar 30, 2023 at 4:27 AM Javier Martinez Canillas
> <[email protected]> wrote:
>>
>> There's a rule to ignore all the dot-files (.*) but we want to exclude the
>> config files used by KUnit (.kunitconfig) since those are usually added to
>> allow executing test suites without having to enable custom config symbols.
>>
>> Signed-off-by: Javier Martinez Canillas <[email protected]>
>
> FYI, Andy has a version of this patch from back in Jan here,
> https://lore.kernel.org/linux-kselftest/[email protected]/
>
> I don't think anyone was adamantly opposed to it, but it's just been
> sitting on the list waiting.
>

Thanks. I missed that there was a patch posted already by Andy.

Masahiro-san,

Could you please pick that? It would not only facilitate adding new KUnit
test suites but also avoid existing reports sent by the kernel robot, i.e:

https://lore.kernel.org/linux-input/CAGS_qxot1_+J3YCykkk0H1fZM6Cn6Pv4SFT6iCf9J7td1aH9HQ@mail.gmail.com/T/#mfcce95444b2df1c8242b03b7434e7730a6087663

--
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat