From: Markus Armbruster <armbru@redhat.com>
To: David Hildenbrand <david@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org, Cornelia Huck <cohuck@redhat.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Halil Pasic <pasic@linux.vnet.ibm.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Michael S Tsirkin <mst@redhat.com>,
Farhan Ali <alifm@linux.vnet.ibm.com>,
Pierre Morel <pmorel@linux.vnet.ibm.com>,
Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>,
Jason J Herne <jjherne@linux.vnet.ibm.com>,
Cleber Rosa <crosa@redhat.com>,
Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH v2] tests: Enable the drive_del test also on s390x
Date: Fri, 01 Sep 2017 11:10:35 +0200 [thread overview]
Message-ID: <87o9qudbsk.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <612870af-f8a4-039c-3e97-7590388b9e77@redhat.com> (David Hildenbrand's message of "Thu, 31 Aug 2017 17:36:45 +0200")
David Hildenbrand <david@redhat.com> writes:
>> static void test_drive_del_device_del(void)
>> {
>> + char *args;
>> +
>> /* Start with a drive used by a device that unplugs instantaneously */
>> - qtest_start("-drive if=none,id=drive0,file=null-co://,format=raw"
>> - " -device virtio-scsi-pci"
>> - " -device scsi-hd,drive=drive0,id=dev0");
>> + args = g_strdup_printf("-drive if=none,id=drive0,file=null-co://,format=raw"
>> + " -device virtio-scsi-%s"
>> + " -device scsi-hd,drive=drive0,id=dev0",
>
> Would look better with the spaces at the end of the previous line (so
> all "-device" are aligned), but just my taste.
The -device *are* aligned, but I get what you mean.
The advantage of leading rather than trailing space is that the
intention "this is still the same string" is locally obvious both at the
first part's end (no comma) and at the second part's beginning (leading
space).
>> + qvirtio_get_dev_type());
>> + qtest_start(args);
>>
>> /*
>> * Delete the drive, and then the device
[...]
next prev parent reply other threads:[~2017-09-01 9:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-31 14:40 [Qemu-devel] [PATCH v2] tests: Enable the drive_del test also on s390x Thomas Huth
2017-08-31 15:36 ` David Hildenbrand
2017-09-01 9:10 ` Markus Armbruster [this message]
2017-09-01 10:39 ` Thomas Huth
2017-09-01 10:43 ` Cornelia Huck
2017-09-01 19:46 ` Eric Blake
2017-09-01 13:43 ` Cornelia Huck
2017-09-04 13:43 ` Cornelia Huck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o9qudbsk.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=alifm@linux.vnet.ibm.com \
--cc=bjsdjshi@linux.vnet.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=crosa@redhat.com \
--cc=david@redhat.com \
--cc=imbrenda@linux.vnet.ibm.com \
--cc=jjherne@linux.vnet.ibm.com \
--cc=mst@redhat.com \
--cc=pasic@linux.vnet.ibm.com \
--cc=pmorel@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.