[libvirt PATCH 00/11] virnetclient: Cleanups and improvement

Andrea Bolognani posted 11 patches 2 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220211173919.112353-1-abologna@redhat.com
src/rpc/virnetclient.c   |  20 +++---
src/util/virbuffer.c     |  17 ++---
tests/virbuftest.c       |   9 ++-
tests/virnetsockettest.c | 149 ++++++++++++++++++++++++++++-----------
4 files changed, 133 insertions(+), 62 deletions(-)
[libvirt PATCH 00/11] virnetclient: Cleanups and improvement
Posted by Andrea Bolognani 2 years, 2 months ago
I initially started looking into this because of

  https://gitlab.com/libvirt/libvirt/-/issues/273

I have now convinced myself that we don't need to change the way we
quote things, but in the process I have accumulated several
improvements and one bug fix.

Andrea Bolognani (11):
  virbuftest: Increase coverage
  virbuffer: Simplify virBufferEscapeShell()
  virnetsockettest: Drop unnecessary backslash
  virnetsockettest: Move opening quote
  virnetsockettest: Improve indentation
  virnetclient: Improve spacing of ssh script
  virnetclient: Use 'if' consistently
  virnetsockettest: Tweak input for test 7
  virnetsockettest: Allow changing the proxy parameter
  virnetsockettest: Increase coverage
  virnetclient: Escape socket path

 src/rpc/virnetclient.c   |  20 +++---
 src/util/virbuffer.c     |  17 ++---
 tests/virbuftest.c       |   9 ++-
 tests/virnetsockettest.c | 149 ++++++++++++++++++++++++++++-----------
 4 files changed, 133 insertions(+), 62 deletions(-)

-- 
2.34.1


Re: [libvirt PATCH 00/11] virnetclient: Cleanups and improvement
Posted by Michal Prívozník 2 years, 2 months ago
On 2/11/22 18:39, Andrea Bolognani wrote:
> I initially started looking into this because of
> 
>   https://gitlab.com/libvirt/libvirt/-/issues/273
> 
> I have now convinced myself that we don't need to change the way we
> quote things, but in the process I have accumulated several
> improvements and one bug fix.
> 
> Andrea Bolognani (11):
>   virbuftest: Increase coverage
>   virbuffer: Simplify virBufferEscapeShell()
>   virnetsockettest: Drop unnecessary backslash
>   virnetsockettest: Move opening quote
>   virnetsockettest: Improve indentation
>   virnetclient: Improve spacing of ssh script
>   virnetclient: Use 'if' consistently
>   virnetsockettest: Tweak input for test 7
>   virnetsockettest: Allow changing the proxy parameter
>   virnetsockettest: Increase coverage
>   virnetclient: Escape socket path
> 
>  src/rpc/virnetclient.c   |  20 +++---
>  src/util/virbuffer.c     |  17 ++---
>  tests/virbuftest.c       |   9 ++-
>  tests/virnetsockettest.c | 149 ++++++++++++++++++++++++++++-----------
>  4 files changed, 133 insertions(+), 62 deletions(-)
> 

For patches 1-5,8-10:

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

You'll need to tweak the expected output in some patches, because
patches 6 and 7 are missing now, but that's easy to do.

Michal

Re: [libvirt PATCH 00/11] virnetclient: Cleanups and improvement
Posted by Andrea Bolognani 2 years, 2 months ago
On Mon, Feb 14, 2022 at 10:21:57AM +0100, Michal Prívozník wrote:
> On 2/11/22 18:39, Andrea Bolognani wrote:
> > Andrea Bolognani (11):
> >   virbuftest: Increase coverage
> >   virbuffer: Simplify virBufferEscapeShell()
> >   virnetsockettest: Drop unnecessary backslash
> >   virnetsockettest: Move opening quote
> >   virnetsockettest: Improve indentation
> >   virnetclient: Improve spacing of ssh script
> >   virnetclient: Use 'if' consistently
> >   virnetsockettest: Tweak input for test 7
> >   virnetsockettest: Allow changing the proxy parameter
> >   virnetsockettest: Increase coverage
> >   virnetclient: Escape socket path
>
> For patches 1-5,8-10:
>
> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
>
> You'll need to tweak the expected output in some patches, because
> patches 6 and 7 are missing now, but that's easy to do.

Done. Thanks a lot for the review :)

-- 
Andrea Bolognani / Red Hat / Virtualization