Good catch, applied, thanks Mike! On Tue, Nov 20, 2012 at 3:44 AM, Mike Qiu <[email protected]> wrote: > Currently, in hmp monitor, try 'info qtree' it will display > some infomation, but as dev: spapr-nvram, id "nvram@1001" > reg = 4097 > drive = <null> > irq = 4098 > This drive=<null> will cause a lot errors in qtree related test. > and if drive=<null> , it will not map to a disk in 'info block', > and it is not a bug. So add that as a exception. > > Signed-off-by: Mike Qiu <[email protected]> > --- > virttest/kvm_qtree.py | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/virttest/kvm_qtree.py b/virttest/kvm_qtree.py > index 27d8410..adfd553 100644 > --- a/virttest/kvm_qtree.py > +++ b/virttest/kvm_qtree.py > @@ -357,7 +357,8 @@ class QtreeDisksContainer(object): > self.disks = [] > for node in nodes: > if isinstance(node, QtreeDisk): > - self.disks.append(node) > + if node.get_qname() != '<null>': > + self.disks.append(node) > > def parse_info_block(self, info): > """ > -- > 1.7.7.6 >
-- Lucas _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
