naarad icon indicating copy to clipboard operation
naarad copied to clipboard

Broken unit tests for cluster and netstat metrics

Open RiteshMaheshwari opened this issue 11 years ago • 0 comments

rmaheshw-mn1:test rmaheshw$ nosetests test_netstat_metric
E
======================================================================
ERROR: test_netstat_metric.test_netstatmetric
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/rmaheshw/git/naarad/test/test_netstat_metric.py", line 67, in test_netstatmetric
    cur_metric.parse()
  File "/Users/rmaheshw/git/naarad/src/naarad/metrics/netstat_metric.py", line 192, in parse
    with open(infile) as fh:
IOError: [Errno 2] No such file or directory: 'n'
-------------------- >> begin captured stdout << ---------------------
logs/netstat.tcp.out

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
naarad.metrics.NetstatMetric: INFO: Processing : n
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 1 test in 0.005s

FAILED (errors=1)

RiteshMaheshwari avatar Apr 25 '14 20:04 RiteshMaheshwari