* [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file
@ 2026-02-24 15:37 Thomas Weißschuh
2026-04-09 13:38 ` Yohei Kojima
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Weißschuh @ 2026-02-24 15:37 UTC (permalink / raw)
To: Shuah Khan
Cc: Brendan Jackman, Shuah Khan, linux-kselftest, linux-kernel,
Thomas Weißschuh
When runner.sh is *not* executed via run_kselftest.sh, the variable
$kselftest_failures_file does not exist. This triggers a harmless but
annyoing warning from runner.sh if a test fails:
tools/testing/selftests/kselftest/runner.sh: line 50: : No such file or directory
Silence the spurious warning.
Fixes: d9e6269e3303 ("selftests/run_kselftest.sh: exit with error if tests fail")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-By: Brendan Jackman <jackmanb@google.com>
---
Changes in v2:
- Rebase on v7.0-rc1
- Pick up review tag
- Link to v1: https://lore.kernel.org/r/20260128-kselftest-fix-failures-file-v1-1-b58072c66317@linutronix.de
---
tools/testing/selftests/kselftest/runner.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kselftest/runner.sh b/tools/testing/selftests/kselftest/runner.sh
index 3a62039fa621..1eb935b6f790 100644
--- a/tools/testing/selftests/kselftest/runner.sh
+++ b/tools/testing/selftests/kselftest/runner.sh
@@ -47,7 +47,7 @@ tap_timeout()
report_failure()
{
echo "not ok $*"
- echo "$*" >> "$kselftest_failures_file"
+ echo "$*" >> "${kselftest_failures_file:-/dev/null}"
}
run_one()
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260128-kselftest-fix-failures-file-8b38692c2a3c
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@linutronix.de>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file
2026-02-24 15:37 [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file Thomas Weißschuh
@ 2026-04-09 13:38 ` Yohei Kojima
2026-04-22 14:51 ` Shuah Khan
0 siblings, 1 reply; 6+ messages in thread
From: Yohei Kojima @ 2026-04-09 13:38 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Shuah Khan, Brendan Jackman, Shuah Khan, linux-kselftest,
linux-kernel
On Tue, Feb 24, 2026 at 04:37:56PM +0100, Thomas Weißschuh wrote:
> When runner.sh is *not* executed via run_kselftest.sh, the variable
> $kselftest_failures_file does not exist. This triggers a harmless but
> annyoing warning from runner.sh if a test fails:
>
> tools/testing/selftests/kselftest/runner.sh: line 50: : No such file or directory
>
> Silence the spurious warning.
>
> Fixes: d9e6269e3303 ("selftests/run_kselftest.sh: exit with error if tests fail")
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> Reviewed-By: Brendan Jackman <jackmanb@google.com>
Hi all,
It seems this patch hasn't been picked up yet, although it already got
reviewed by Brendan. This bug is also mentioned by a netdev maintainer
and several developers [1], so I think it would be nice to have this
patch merged.
[1]: https://lore.kernel.org/lkml/20260112135326.7ce71119@kernel.org/
I confirmed that it still applies to 7.0-rc7. I also tested it by adding
a failing test to net and namespaces selftests, and confirmed that the
error disappeared.
Tested-by: Yohei Kojima <yk@y-koj.net>
Thanks,
Yohei
> ---
> Changes in v2:
> - Rebase on v7.0-rc1
> - Pick up review tag
> - Link to v1: https://lore.kernel.org/r/20260128-kselftest-fix-failures-file-v1-1-b58072c66317@linutronix.de
> ---
> tools/testing/selftests/kselftest/runner.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/kselftest/runner.sh b/tools/testing/selftests/kselftest/runner.sh
> index 3a62039fa621..1eb935b6f790 100644
> --- a/tools/testing/selftests/kselftest/runner.sh
> +++ b/tools/testing/selftests/kselftest/runner.sh
> @@ -47,7 +47,7 @@ tap_timeout()
> report_failure()
> {
> echo "not ok $*"
> - echo "$*" >> "$kselftest_failures_file"
> + echo "$*" >> "${kselftest_failures_file:-/dev/null}"
> }
>
> run_one()
>
> ---
> base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
> change-id: 20260128-kselftest-fix-failures-file-8b38692c2a3c
>
> Best regards,
> --
> Thomas Weißschuh <thomas.weissschuh@linutronix.de>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file
2026-04-09 13:38 ` Yohei Kojima
@ 2026-04-22 14:51 ` Shuah Khan
2026-04-27 16:20 ` Shuah Khan
0 siblings, 1 reply; 6+ messages in thread
From: Shuah Khan @ 2026-04-22 14:51 UTC (permalink / raw)
To: Yohei Kojima, Thomas Weißschuh
Cc: Shuah Khan, Brendan Jackman, linux-kselftest, linux-kernel,
Shuah Khan
On 4/9/26 07:38, Yohei Kojima wrote:
> On Tue, Feb 24, 2026 at 04:37:56PM +0100, Thomas Weißschuh wrote:
>> When runner.sh is *not* executed via run_kselftest.sh, the variable
>> $kselftest_failures_file does not exist. This triggers a harmless but
>> annyoing warning from runner.sh if a test fails:
>>
>> tools/testing/selftests/kselftest/runner.sh: line 50: : No such file or directory
>>
>> Silence the spurious warning.
>>
>> Fixes: d9e6269e3303 ("selftests/run_kselftest.sh: exit with error if tests fail")
>> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
>> Reviewed-By: Brendan Jackman <jackmanb@google.com>
>
> Hi all,
>
> It seems this patch hasn't been picked up yet, although it already got
> reviewed by Brendan. This bug is also mentioned by a netdev maintainer
> and several developers [1], so I think it would be nice to have this
> patch merged.
>
> [1]: https://lore.kernel.org/lkml/20260112135326.7ce71119@kernel.org/
>
> I confirmed that it still applies to 7.0-rc7. I also tested it by adding
> a failing test to net and namespaces selftests, and confirmed that the
> error disappeared.
>
> Tested-by: Yohei Kojima <yk@y-koj.net>
>
Sorry for the delay.
It disappeared in my Inbox - I will pick this up for Linux 7.1-rc2
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file
2026-04-22 14:51 ` Shuah Khan
@ 2026-04-27 16:20 ` Shuah Khan
2026-04-29 11:12 ` Thomas Weißschuh
0 siblings, 1 reply; 6+ messages in thread
From: Shuah Khan @ 2026-04-27 16:20 UTC (permalink / raw)
To: Yohei Kojima, Thomas Weißschuh
Cc: Shuah Khan, Brendan Jackman, linux-kselftest, linux-kernel,
Shuah Khan
On 4/22/26 08:51, Shuah Khan wrote:
> On 4/9/26 07:38, Yohei Kojima wrote:
>> On Tue, Feb 24, 2026 at 04:37:56PM +0100, Thomas Weißschuh wrote:
>>> When runner.sh is *not* executed via run_kselftest.sh, the variable
>>> $kselftest_failures_file does not exist. This triggers a harmless but
>>> annyoing warning from runner.sh if a test fails:
>>>
>>> tools/testing/selftests/kselftest/runner.sh: line 50: : No such file or directory
>>>
>>> Silence the spurious warning.
>>>
>>> Fixes: d9e6269e3303 ("selftests/run_kselftest.sh: exit with error if tests fail")
>>> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
>>> Reviewed-By: Brendan Jackman <jackmanb@google.com>
>>
>> Hi all,
>>
>> It seems this patch hasn't been picked up yet, although it already got
>> reviewed by Brendan. This bug is also mentioned by a netdev maintainer
>> and several developers [1], so I think it would be nice to have this
>> patch merged.
>>
>> [1]: https://lore.kernel.org/lkml/20260112135326.7ce71119@kernel.org/
>>
>> I confirmed that it still applies to 7.0-rc7. I also tested it by adding
>> a failing test to net and namespaces selftests, and confirmed that the
>> error disappeared.
>>
>> Tested-by: Yohei Kojima <yk@y-koj.net>
>>
>
> Sorry for the delay.
>
> It disappeared in my Inbox - I will pick this up for Linux 7.1-rc2
>
Thomas,
Please rebase on Linux 7.1-rc1 and send it to me?
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file
2026-04-27 16:20 ` Shuah Khan
@ 2026-04-29 11:12 ` Thomas Weißschuh
2026-04-30 21:21 ` Shuah Khan
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Weißschuh @ 2026-04-29 11:12 UTC (permalink / raw)
To: Shuah Khan
Cc: Yohei Kojima, Shuah Khan, Brendan Jackman, linux-kselftest,
linux-kernel
On Mon, Apr 27, 2026 at 10:20:43AM -0600, Shuah Khan wrote:
> On 4/22/26 08:51, Shuah Khan wrote:
> > On 4/9/26 07:38, Yohei Kojima wrote:
> > > On Tue, Feb 24, 2026 at 04:37:56PM +0100, Thomas Weißschuh wrote:
> > > > When runner.sh is *not* executed via run_kselftest.sh, the variable
> > > > $kselftest_failures_file does not exist. This triggers a harmless but
> > > > annyoing warning from runner.sh if a test fails:
> > > >
> > > > tools/testing/selftests/kselftest/runner.sh: line 50: : No such file or directory
> > > >
> > > > Silence the spurious warning.
> > > >
> > > > Fixes: d9e6269e3303 ("selftests/run_kselftest.sh: exit with error if tests fail")
> > > > Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> > > > Reviewed-By: Brendan Jackman <jackmanb@google.com>
> > >
> > > Hi all,
> > >
> > > It seems this patch hasn't been picked up yet, although it already got
> > > reviewed by Brendan. This bug is also mentioned by a netdev maintainer
> > > and several developers [1], so I think it would be nice to have this
> > > patch merged.
> > >
> > > [1]: https://lore.kernel.org/lkml/20260112135326.7ce71119@kernel.org/
> > >
> > > I confirmed that it still applies to 7.0-rc7. I also tested it by adding
> > > a failing test to net and namespaces selftests, and confirmed that the
> > > error disappeared.
> > >
> > > Tested-by: Yohei Kojima <yk@y-koj.net>
> > >
> >
> > Sorry for the delay.
> >
> > It disappeared in my Inbox - I will pick this up for Linux 7.1-rc2
>
> Please rebase on Linux 7.1-rc1 and send it to me?
This actually doesn't seem to be necessary anymore since commit 2964f6b816c2
("selftests: Use ktap helpers for runner.sh"). So let's drop it.
Thomas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file
2026-04-29 11:12 ` Thomas Weißschuh
@ 2026-04-30 21:21 ` Shuah Khan
0 siblings, 0 replies; 6+ messages in thread
From: Shuah Khan @ 2026-04-30 21:21 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Yohei Kojima, Shuah Khan, Brendan Jackman, linux-kselftest,
linux-kernel
On 4/29/26 05:12, Thomas Weißschuh wrote:
> On Mon, Apr 27, 2026 at 10:20:43AM -0600, Shuah Khan wrote:
>> On 4/22/26 08:51, Shuah Khan wrote:
>>> On 4/9/26 07:38, Yohei Kojima wrote:
>>>> On Tue, Feb 24, 2026 at 04:37:56PM +0100, Thomas Weißschuh wrote:
>>>>> When runner.sh is *not* executed via run_kselftest.sh, the variable
>>>>> $kselftest_failures_file does not exist. This triggers a harmless but
>>>>> annyoing warning from runner.sh if a test fails:
>>>>>
>>>>> tools/testing/selftests/kselftest/runner.sh: line 50: : No such file or directory
>>>>>
>>>>> Silence the spurious warning.
>>>>>
>>>>> Fixes: d9e6269e3303 ("selftests/run_kselftest.sh: exit with error if tests fail")
>>>>> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
>>>>> Reviewed-By: Brendan Jackman <jackmanb@google.com>
>>>>
>>>> Hi all,
>>>>
>>>> It seems this patch hasn't been picked up yet, although it already got
>>>> reviewed by Brendan. This bug is also mentioned by a netdev maintainer
>>>> and several developers [1], so I think it would be nice to have this
>>>> patch merged.
>>>>
>>>> [1]: https://lore.kernel.org/lkml/20260112135326.7ce71119@kernel.org/
>>>>
>>>> I confirmed that it still applies to 7.0-rc7. I also tested it by adding
>>>> a failing test to net and namespaces selftests, and confirmed that the
>>>> error disappeared.
>>>>
>>>> Tested-by: Yohei Kojima <yk@y-koj.net>
>>>>
>>>
>>> Sorry for the delay.
>>>
>>> It disappeared in my Inbox - I will pick this up for Linux 7.1-rc2
>>
>> Please rebase on Linux 7.1-rc1 and send it to me?
>
> This actually doesn't seem to be necessary anymore since commit 2964f6b816c2
> ("selftests: Use ktap helpers for runner.sh"). So let's drop it.
>
>
Thanks for confirming.
-- Shuah
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-04-30 21:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24 15:37 [PATCH v2] selftests: runner: Avoid spurious warning about missing failures file Thomas Weißschuh
2026-04-09 13:38 ` Yohei Kojima
2026-04-22 14:51 ` Shuah Khan
2026-04-27 16:20 ` Shuah Khan
2026-04-29 11:12 ` Thomas Weißschuh
2026-04-30 21:21 ` Shuah Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox