pcp
[Top] [All Lists]

Re: [pcp] qa/709 failing on Mac OS X - pmcollectl

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, Stan Cox <scox@xxxxxxxxxx>
Subject: Re: [pcp] qa/709 failing on Mac OS X - pmcollectl
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 16 Mar 2016 17:54:34 -0400 (EDT)
Cc: PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <56E9CDDF.5080209@xxxxxxxxxxxxxxxx>
References: <56E9CDDF.5080209@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: 5h9RuXr6jgWKWJV1lgjKT7kidL2JKA==
Thread-topic: qa/709 failing on Mac OS X - pmcollectl
Hi Ken,

----- Original Message -----
> There are no network.interface.in.compressed metrics from the darwin PMDA,
> leading to ...
> 
> ! Traceback (most recent call last):
> ! File "/usr/local/bin/pmcollectl", line 9, in <module>
> ! ssx.print_line()
> ! File "/usr/local/bin/pmcollectl", line 9, in print_line
> ! self.print_verbose()
> ! File "/usr/local/bin/pmcollectl", line 9, in print_verbose
> ! sum(self.ss.get_metric_value('network.interface.in.compressed')),
> ! TypeError: 'int' object is not iterable
> 
> My questions are:
> 
> (a) should pmcollectl handle this case correctly?

Yep, I think it should - looks like a bug.

> (b) should qa/709 be _notrun for darwin (and other platforms where required
> metrics are unavailable)?

Since an archive (from a Linux host) might not contain this metric too, I
think the above failure is not a reason to _notrun the test.

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>