qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH for-2.12 v3 2/2] iotests: Update 186 after commi


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH for-2.12 v3 2/2] iotests: Update 186 after commit ac64273c66ab136c44043259162
Date: Thu, 22 Mar 2018 08:55:53 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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

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