linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kunit: Add missing newline in summary message
@ 2020-04-16 11:42 Marco Elver
  2020-04-17  2:55 ` David Gow
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Marco Elver @ 2020-04-16 11:42 UTC (permalink / raw)
  To: elver
  Cc: linux-kernel, brendanhiggins, linux-kselftest, kunit-dev,
	alan.maguire, frank.rowand, skhan

Add missing newline, as otherwise flushing of the final summary message
to the console log can be delayed.

Fixes: e2219db280e3 ("kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display")
Signed-off-by: Marco Elver <elver@google.com>
---
 lib/kunit/test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/kunit/test.c b/lib/kunit/test.c
index 7a6430a7fca0..ccb2ffad8dcf 100644
--- a/lib/kunit/test.c
+++ b/lib/kunit/test.c
@@ -93,7 +93,7 @@ static void kunit_print_ok_not_ok(void *test_or_suite,
 	 * representation.
 	 */
 	if (suite)
-		pr_info("%s %zd - %s",
+		pr_info("%s %zd - %s\n",
 			kunit_status_to_string(is_ok),
 			test_number, description);
 	else
-- 
2.26.1.301.g55bc3eb7cb9-goog


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] kunit: Add missing newline in summary message
  2020-04-16 11:42 [PATCH] kunit: Add missing newline in summary message Marco Elver
@ 2020-04-17  2:55 ` David Gow
  2020-04-17 10:03 ` Alan Maguire
  2020-04-22 19:35 ` Brendan Higgins
  2 siblings, 0 replies; 7+ messages in thread
From: David Gow @ 2020-04-17  2:55 UTC (permalink / raw)
  To: Marco Elver
  Cc: Linux Kernel Mailing List, Brendan Higgins,
	open list:KERNEL SELFTEST FRAMEWORK, KUnit Development,
	Alan Maguire, frank.rowand, Shuah Khan

On Thu, Apr 16, 2020 at 7:43 PM 'Marco Elver' via KUnit Development
<kunit-dev@googlegroups.com> wrote:
>
> Add missing newline, as otherwise flushing of the final summary message
> to the console log can be delayed.
>
> Fixes: e2219db280e3 ("kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display")
> Signed-off-by: Marco Elver <elver@google.com>

Tested-by: David Gow <davidgow@google.com>

Thanks a lot: this issue was starting to get annoying, and I can
confirm this patch fixes it for me!

-- David

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kunit: Add missing newline in summary message
  2020-04-16 11:42 [PATCH] kunit: Add missing newline in summary message Marco Elver
  2020-04-17  2:55 ` David Gow
@ 2020-04-17 10:03 ` Alan Maguire
  2020-04-22 11:05   ` Marco Elver
  2020-04-22 19:35 ` Brendan Higgins
  2 siblings, 1 reply; 7+ messages in thread
From: Alan Maguire @ 2020-04-17 10:03 UTC (permalink / raw)
  To: Marco Elver
  Cc: linux-kernel, brendanhiggins, linux-kselftest, kunit-dev,
	alan.maguire, frank.rowand, skhan

On Thu, 16 Apr 2020, Marco Elver wrote:

> Add missing newline, as otherwise flushing of the final summary message
> to the console log can be delayed.
> 
> Fixes: e2219db280e3 ("kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display")
> Signed-off-by: Marco Elver <elver@google.com>

Reviewed-by: Alan Maguire <alan.maguire@oracle.com>

Thanks for finding/fixing this!

Alan

> ---
>  lib/kunit/test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/kunit/test.c b/lib/kunit/test.c
> index 7a6430a7fca0..ccb2ffad8dcf 100644
> --- a/lib/kunit/test.c
> +++ b/lib/kunit/test.c
> @@ -93,7 +93,7 @@ static void kunit_print_ok_not_ok(void *test_or_suite,
>  	 * representation.
>  	 */
>  	if (suite)
> -		pr_info("%s %zd - %s",
> +		pr_info("%s %zd - %s\n",
>  			kunit_status_to_string(is_ok),
>  			test_number, description);
>  	else
> -- 
> 2.26.1.301.g55bc3eb7cb9-goog
> 
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kunit: Add missing newline in summary message
  2020-04-17 10:03 ` Alan Maguire
@ 2020-04-22 11:05   ` Marco Elver
  2020-04-22 19:37     ` Brendan Higgins
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Elver @ 2020-04-22 11:05 UTC (permalink / raw)
  To: Alan Maguire
  Cc: LKML, Brendan Higgins, linux-kselftest, kunit-dev, frank.rowand, skhan

On Fri, 17 Apr 2020 at 12:03, Alan Maguire <alan.maguire@oracle.com> wrote:
>
> On Thu, 16 Apr 2020, Marco Elver wrote:
>
> > Add missing newline, as otherwise flushing of the final summary message
> > to the console log can be delayed.
> >
> > Fixes: e2219db280e3 ("kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display")
> > Signed-off-by: Marco Elver <elver@google.com>
>
> Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
>
> Thanks for finding/fixing this!
>
> Alan
>
> > ---
> >  lib/kunit/test.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)

Which tree will pick this up? I cannot yet see this in -next.

Thanks,
-- Marco


> > diff --git a/lib/kunit/test.c b/lib/kunit/test.c
> > index 7a6430a7fca0..ccb2ffad8dcf 100644
> > --- a/lib/kunit/test.c
> > +++ b/lib/kunit/test.c
> > @@ -93,7 +93,7 @@ static void kunit_print_ok_not_ok(void *test_or_suite,
> >        * representation.
> >        */
> >       if (suite)
> > -             pr_info("%s %zd - %s",
> > +             pr_info("%s %zd - %s\n",
> >                       kunit_status_to_string(is_ok),
> >                       test_number, description);
> >       else
> > --
> > 2.26.1.301.g55bc3eb7cb9-goog
> >
> >

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kunit: Add missing newline in summary message
  2020-04-16 11:42 [PATCH] kunit: Add missing newline in summary message Marco Elver
  2020-04-17  2:55 ` David Gow
  2020-04-17 10:03 ` Alan Maguire
@ 2020-04-22 19:35 ` Brendan Higgins
  2020-04-23 22:07   ` Shuah Khan
  2 siblings, 1 reply; 7+ messages in thread
From: Brendan Higgins @ 2020-04-22 19:35 UTC (permalink / raw)
  To: Marco Elver
  Cc: Linux Kernel Mailing List, open list:KERNEL SELFTEST FRAMEWORK,
	KUnit Development, Alan Maguire, Frank Rowand, Shuah Khan

On Thu, Apr 16, 2020 at 4:43 AM Marco Elver <elver@google.com> wrote:
>
> Add missing newline, as otherwise flushing of the final summary message
> to the console log can be delayed.
>
> Fixes: e2219db280e3 ("kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display")
> Signed-off-by: Marco Elver <elver@google.com>

Acked-by: Brendan Higgins <brendanhiggins@google.com>

Thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kunit: Add missing newline in summary message
  2020-04-22 11:05   ` Marco Elver
@ 2020-04-22 19:37     ` Brendan Higgins
  0 siblings, 0 replies; 7+ messages in thread
From: Brendan Higgins @ 2020-04-22 19:37 UTC (permalink / raw)
  To: Marco Elver
  Cc: Alan Maguire, LKML, open list:KERNEL SELFTEST FRAMEWORK,
	KUnit Development, Frank Rowand, Shuah Khan

On Wed, Apr 22, 2020 at 4:05 AM Marco Elver <elver@google.com> wrote:
>
> On Fri, 17 Apr 2020 at 12:03, Alan Maguire <alan.maguire@oracle.com> wrote:
> >
> > On Thu, 16 Apr 2020, Marco Elver wrote:
> >
> > > Add missing newline, as otherwise flushing of the final summary message
> > > to the console log can be delayed.
> > >
> > > Fixes: e2219db280e3 ("kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display")
> > > Signed-off-by: Marco Elver <elver@google.com>
> >
> > Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
> >
> > Thanks for finding/fixing this!
> >
> > Alan
> >
> > > ---
> > >  lib/kunit/test.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Which tree will pick this up? I cannot yet see this in -next.

This will be picked up by kselftest/kunit:

https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/log/?h=kunit

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kunit: Add missing newline in summary message
  2020-04-22 19:35 ` Brendan Higgins
@ 2020-04-23 22:07   ` Shuah Khan
  0 siblings, 0 replies; 7+ messages in thread
From: Shuah Khan @ 2020-04-23 22:07 UTC (permalink / raw)
  To: Brendan Higgins, Marco Elver
  Cc: Linux Kernel Mailing List, open list:KERNEL SELFTEST FRAMEWORK,
	KUnit Development, Alan Maguire, Frank Rowand, Shuah Khan

On 4/22/20 1:35 PM, Brendan Higgins wrote:
> On Thu, Apr 16, 2020 at 4:43 AM Marco Elver <elver@google.com> wrote:
>>
>> Add missing newline, as otherwise flushing of the final summary message
>> to the console log can be delayed.
>>
>> Fixes: e2219db280e3 ("kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results display")
>> Signed-off-by: Marco Elver <elver@google.com>
> 
> Acked-by: Brendan Higgins <brendanhiggins@google.com>
> 
> Thanks!
> 

Applied. Now in

git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest kunit
branch.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-23 22:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 11:42 [PATCH] kunit: Add missing newline in summary message Marco Elver
2020-04-17  2:55 ` David Gow
2020-04-17 10:03 ` Alan Maguire
2020-04-22 11:05   ` Marco Elver
2020-04-22 19:37     ` Brendan Higgins
2020-04-22 19:35 ` Brendan Higgins
2020-04-23 22:07   ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).