[PATCH] simplebench: Fix Python syntax error (reported by LGTM)

Stefan Weil posted 1 patch 2 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220107153019.504124-1-sw@weilnetz.de
Maintainers: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
scripts/simplebench/bench-example.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] simplebench: Fix Python syntax error (reported by LGTM)
Posted by Stefan Weil 2 years, 3 months ago
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 scripts/simplebench/bench-example.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/simplebench/bench-example.py b/scripts/simplebench/bench-example.py
index 4864435f39..fc370691e0 100644
--- a/scripts/simplebench/bench-example.py
+++ b/scripts/simplebench/bench-example.py
@@ -25,7 +25,7 @@
 
 def bench_func(env, case):
     """ Handle one "cell" of benchmarking table. """
-    return bench_block_copy(env['qemu_binary'], env['cmd'], {}
+    return bench_block_copy(env['qemu_binary'], env['cmd'], {},
                             case['source'], case['target'])
 
 
-- 
2.30.2


Re: [PATCH] simplebench: Fix Python syntax error (reported by LGTM)
Posted by Philippe Mathieu-Daudé 2 years, 3 months ago
On 1/7/22 16:30, Stefan Weil wrote:
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  scripts/simplebench/bench-example.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/simplebench/bench-example.py b/scripts/simplebench/bench-example.py
> index 4864435f39..fc370691e0 100644
> --- a/scripts/simplebench/bench-example.py
> +++ b/scripts/simplebench/bench-example.py
> @@ -25,7 +25,7 @@
>  
>  def bench_func(env, case):
>      """ Handle one "cell" of benchmarking table. """
> -    return bench_block_copy(env['qemu_binary'], env['cmd'], {}
> +    return bench_block_copy(env['qemu_binary'], env['cmd'], {},
>                              case['source'], case['target'])
>  
>  

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


Re: [PATCH] simplebench: Fix Python syntax error (reported by LGTM)
Posted by John Snow 2 years, 3 months ago
On Fri, Jan 7, 2022 at 10:32 AM Stefan Weil <sw@weilnetz.de> wrote:

> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  scripts/simplebench/bench-example.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/simplebench/bench-example.py
> b/scripts/simplebench/bench-example.py
> index 4864435f39..fc370691e0 100644
> --- a/scripts/simplebench/bench-example.py
> +++ b/scripts/simplebench/bench-example.py
> @@ -25,7 +25,7 @@
>
>  def bench_func(env, case):
>      """ Handle one "cell" of benchmarking table. """
> -    return bench_block_copy(env['qemu_binary'], env['cmd'], {}
> +    return bench_block_copy(env['qemu_binary'], env['cmd'], {},
>                              case['source'], case['target'])
>
>
> --
> 2.30.2
>

Good spot. If it's not too late and not a hassle, can you add a fixes:
commit-id in the commit message? No big deal if not.

Reviewed-by: John Snow <jsnow@redhat.com>
Re: [PATCH] simplebench: Fix Python syntax error (reported by LGTM)
Posted by Stefan Weil 2 years, 3 months ago
Am 10.01.22 um 18:08 schrieb John Snow:

> On Fri, Jan 7, 2022 at 10:32 AM Stefan Weil <sw@weilnetz.de> wrote:
>
>     Signed-off-by: Stefan Weil <sw@weilnetz.de>
>     ---
>      scripts/simplebench/bench-example.py | 2 +-
>      1 file changed, 1 insertion(+), 1 deletion(-)
>
>     diff --git a/scripts/simplebench/bench-example.py
>     b/scripts/simplebench/bench-example.py
>     index 4864435f39..fc370691e0 100644
>     --- a/scripts/simplebench/bench-example.py
>     +++ b/scripts/simplebench/bench-example.py
>     @@ -25,7 +25,7 @@
>
>      def bench_func(env, case):
>          """ Handle one "cell" of benchmarking table. """
>     -    return bench_block_copy(env['qemu_binary'], env['cmd'], {}
>     +    return bench_block_copy(env['qemu_binary'], env['cmd'], {},
>                                  case['source'], case['target'])
>
>
>     -- 
>     2.30.2
>
>
> Good spot. If it's not too late and not a hassle, can you add a fixes: 
> commit-id in the commit message? No big deal if not.
>
> Reviewed-by: John Snow <jsnow@redhat.com>


Maybe that can be added locally to avoid a V2 patch. Here it is:

Fixes: b2fcb0c5754c2554b8406376e99a75e9e0a6b7bd

Thanks,

Stefan


Re: [PATCH] simplebench: Fix Python syntax error (reported by LGTM)
Posted by John Snow 2 years, 3 months ago
On Mon, Jan 10, 2022 at 12:57 PM Stefan Weil <sw@weilnetz.de> wrote:

> Am 10.01.22 um 18:08 schrieb John Snow:
>
> On Fri, Jan 7, 2022 at 10:32 AM Stefan Weil <sw@weilnetz.de> wrote:
>
>> Signed-off-by: Stefan Weil <sw@weilnetz.de>
>> ---
>>  scripts/simplebench/bench-example.py | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/scripts/simplebench/bench-example.py
>> b/scripts/simplebench/bench-example.py
>> index 4864435f39..fc370691e0 100644
>> --- a/scripts/simplebench/bench-example.py
>> +++ b/scripts/simplebench/bench-example.py
>> @@ -25,7 +25,7 @@
>>
>>  def bench_func(env, case):
>>      """ Handle one "cell" of benchmarking table. """
>> -    return bench_block_copy(env['qemu_binary'], env['cmd'], {}
>> +    return bench_block_copy(env['qemu_binary'], env['cmd'], {},
>>                              case['source'], case['target'])
>>
>>
>> --
>> 2.30.2
>>
>
> Good spot. If it's not too late and not a hassle, can you add a fixes:
> commit-id in the commit message? No big deal if not.
>
> Reviewed-by: John Snow <jsnow@redhat.com>
>
>
> Maybe that can be added locally to avoid a V2 patch. Here it is:
>
> Fixes: b2fcb0c5754c2554b8406376e99a75e9e0a6b7bd
>
> Thanks,
>
> Stefan
>
>
> Got it. I just got back from holiday today, so there's still lots of mail
to catch up on. If nobody else has staged this, I will do so as part of my
python fixes this week. Thanks!

--js
Re: [PATCH] simplebench: Fix Python syntax error (reported by LGTM)
Posted by Vladimir Sementsov-Ogievskiy 2 years, 3 months ago
10.01.2022 21:09, John Snow wrote:
> 
> 
> On Mon, Jan 10, 2022 at 12:57 PM Stefan Weil <sw@weilnetz.de <mailto:sw@weilnetz.de>> wrote:
> 
>     Am 10.01.22 um 18:08 schrieb John Snow:
> 
>>     On Fri, Jan 7, 2022 at 10:32 AM Stefan Weil <sw@weilnetz.de <mailto:sw@weilnetz.de>> wrote:
>>
>>         Signed-off-by: Stefan Weil <sw@weilnetz.de <mailto:sw@weilnetz.de>>
>>         ---
>>          scripts/simplebench/bench-example.py | 2 +-
>>          1 file changed, 1 insertion(+), 1 deletion(-)
>>
>>         diff --git a/scripts/simplebench/bench-example.py b/scripts/simplebench/bench-example.py
>>         index 4864435f39..fc370691e0 100644
>>         --- a/scripts/simplebench/bench-example.py
>>         +++ b/scripts/simplebench/bench-example.py
>>         @@ -25,7 +25,7 @@
>>
>>          def bench_func(env, case):
>>              """ Handle one "cell" of benchmarking table. """
>>         -    return bench_block_copy(env['qemu_binary'], env['cmd'], {}
>>         +    return bench_block_copy(env['qemu_binary'], env['cmd'], {},
>>                                      case['source'], case['target'])
>>
>>
>>         -- 
>>         2.30.2
>>
>>
>>     Good spot. If it's not too late and not a hassle, can you add a fixes: commit-id in the commit message? No big deal if not.
>>
>>     Reviewed-by: John Snow <jsnow@redhat.com <mailto:jsnow@redhat.com>>
> 
> 
>     Maybe that can be added locally to avoid a V2 patch. Here it is:
> 
>     Fixes: b2fcb0c5754c2554b8406376e99a75e9e0a6b7bd
> 
>     Thanks,
> 
>     Stefan
> 
> 
> Got it. I just got back from holiday today, so there's still lots of mail to catch up on. If nobody else has staged this, I will do so as part of my python fixes this week. Thanks!
> 

It would be nice, thanks!


-- 
Best regards,
Vladimir

Re: [PATCH] simplebench: Fix Python syntax error (reported by LGTM)
Posted by John Snow 2 years, 3 months ago
On Mon, Jan 17, 2022 at 3:02 AM Vladimir Sementsov-Ogievskiy
<vsementsov@virtuozzo.com> wrote:
>
> 10.01.2022 21:09, John Snow wrote:
> >
> >
> > On Mon, Jan 10, 2022 at 12:57 PM Stefan Weil <sw@weilnetz.de <mailto:sw@weilnetz.de>> wrote:
> >
> >     Am 10.01.22 um 18:08 schrieb John Snow:
> >
> >>     On Fri, Jan 7, 2022 at 10:32 AM Stefan Weil <sw@weilnetz.de <mailto:sw@weilnetz.de>> wrote:
> >>
> >>         Signed-off-by: Stefan Weil <sw@weilnetz.de <mailto:sw@weilnetz.de>>
> >>         ---
> >>          scripts/simplebench/bench-example.py | 2 +-
> >>          1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >>         diff --git a/scripts/simplebench/bench-example.py b/scripts/simplebench/bench-example.py
> >>         index 4864435f39..fc370691e0 100644
> >>         --- a/scripts/simplebench/bench-example.py
> >>         +++ b/scripts/simplebench/bench-example.py
> >>         @@ -25,7 +25,7 @@
> >>
> >>          def bench_func(env, case):
> >>              """ Handle one "cell" of benchmarking table. """
> >>         -    return bench_block_copy(env['qemu_binary'], env['cmd'], {}
> >>         +    return bench_block_copy(env['qemu_binary'], env['cmd'], {},
> >>                                      case['source'], case['target'])
> >>
> >>
> >>         --
> >>         2.30.2
> >>
> >>
> >>     Good spot. If it's not too late and not a hassle, can you add a fixes: commit-id in the commit message? No big deal if not.
> >>
> >>     Reviewed-by: John Snow <jsnow@redhat.com <mailto:jsnow@redhat.com>>
> >
> >
> >     Maybe that can be added locally to avoid a V2 patch. Here it is:
> >
> >     Fixes: b2fcb0c5754c2554b8406376e99a75e9e0a6b7bd
> >
> >     Thanks,
> >
> >     Stefan
> >
> >
> > Got it. I just got back from holiday today, so there's still lots of mail to catch up on. If nobody else has staged this, I will do so as part of my python fixes this week. Thanks!
> >
>
> It would be nice, thanks!
>

Should be in origin/master by now, I forgot to update this thread.

--js