On 03/22/2018 08:42 AM, Alberto Garcia wrote:
On Thu 22 Mar 2018 02:17:23 PM CET, Eric Blake wrote:
--- a/tests/qemu-iotests/186.out
+++ b/tests/qemu-iotests/186.out
@@ -404,7 +404,7 @@ Testing: -drive if=floppy
   QEMU X.Y.Z monitor - type 'help' for more information
   (qemu) info block
   floppy0: [not inserted]
-    Attached to:      /machine/unattached/device[17]
+    Attached to:      /machine/unattached/device[13]

It looks like this name is quite flexible; would it not be better to
enhance 186 to sed out the name (s/Attached to:.*/Attached to: PATH/)
and then adjust the .out so that it is no longer sensitive to these
types of internal renames?

That's a good idea, shall we hide the number only?  (i.e. leave
"/machine/unattached/device[INDEX]" or something like that), or can the
rest of the path also change?

I don't see the value in knowing whether the device is unattached, or if a future attaches it somewhere, so changing the entire thing to PATH seems reasonable, rather than trying to just focus on the index. (That is, the sed expression I mentioned is sufficient)

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to