qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/3] tests: virtio-9p: add basic configuration t


From: Greg Kurz
Subject: Re: [Qemu-devel] [PATCH 2/3] tests: virtio-9p: add basic configuration test
Date: Thu, 15 Sep 2016 14:09:12 +0200

On Thu, 15 Sep 2016 10:40:45 +0200
Cornelia Huck <address@hidden> wrote:

> On Fri, 09 Sep 2016 10:04:51 +0200
> Greg Kurz <address@hidden> wrote:
> 
> > This adds PCI init code and a basic test that checks the device config
> > matches what is passed on the command line.
> > 
> > Signed-off-by: Greg Kurz <address@hidden>
> > ---
> >  tests/Makefile.include |    2 +
> >  tests/virtio-9p-test.c |   82 
> > +++++++++++++++++++++++++++++++++++++++++++++++-
> >  2 files changed, 81 insertions(+), 3 deletions(-)  
> 
> > +static const char mount_tag[] = "qtest";
> >  static char *test_share;
> > 
> >  static void qvirtio_9p_start(void)
> > @@ -21,8 +29,8 @@ static void qvirtio_9p_start(void)
> >      g_assert_nonnull(mkdtemp(test_share));
> > 
> >      args = g_strdup_printf("-fsdev 
> > local,id=fsdev0,security_model=none,path=%s "
> > -                           "-device 
> > virtio-9p-pci,fsdev=fsdev0,mount_tag=qtest",
> > -                           test_share);
> > +                           "-device 
> > virtio-9p-pci,fsdev=fsdev0,mount_tag=%s",
> > +                           test_share, mount_tag);
> > 
> >      qtest_start(args);
> >      g_free(args);  
> 
> Maybe move this change to patch 1?
> 

It isn't strictly needed in patch 1 since the mount tag has only one user there,
but on the other hand, it isn't related to the purpose of patch 2 either. So I
guess your suggestion makes sense: I'll move this change.

Thanks.

--
Greg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]