[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
- [Qemu-devel] [PATCH 0/3] tests: more test cases for virtio-9p, Greg Kurz, 2016/09/09
- [Qemu-devel] [PATCH 1/3] tests: virtio-9p: introduce start/stop functions, Greg Kurz, 2016/09/09
- [Qemu-devel] [PATCH 2/3] tests: virtio-9p: add basic configuration test, Greg Kurz, 2016/09/09
- [Qemu-devel] [PATCH 3/3] tests: virtio-9p: add basic transaction test, Greg Kurz, 2016/09/09
- Re: [Qemu-devel] [PATCH 0/3] tests: more test cases for virtio-9p, no-reply, 2016/09/09
- Re: [Qemu-devel] [PATCH 0/3] tests: more test cases for virtio-9p, Greg Kurz, 2016/09/15
- Re: [Qemu-devel] [PATCH 0/3] tests: more test cases for virtio-9p, Cornelia Huck, 2016/09/15