summaryrefslogtreecommitdiffstats
path: root/baro_tests/collectd.py
diff options
context:
space:
mode:
authorToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>2018-09-06 10:16:09 +0000
committerToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>2018-09-07 06:03:16 +0000
commitdfaf48cb7674f84c67b89ed495660f0d98c7ca7c (patch)
tree6eccd84b54efb3a887e7920a9e29bf314540bec6 /baro_tests/collectd.py
parentd61931341176dad9ccff7c967a10d88fe54218fa (diff)
functest: Add test code of DMA localagent
Change-Id: If1195b7b3d9000e3ec75bc3c4c108b0e9a1bc9e3 Signed-off-by: Toshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
Diffstat (limited to 'baro_tests/collectd.py')
-rw-r--r--baro_tests/collectd.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/baro_tests/collectd.py b/baro_tests/collectd.py
index 922403f1..51350495 100644
--- a/baro_tests/collectd.py
+++ b/baro_tests/collectd.py
@@ -23,6 +23,7 @@ import time
import logging
import config_server
import tests
+import local_agent
from distutils import version
from opnfv.deployment import factory
@@ -866,14 +867,19 @@ def main(bt_logger=None):
print_overall_summary(
compute_ids, plugin_labels, aodh_plugin_labels, results, out_plugins)
+ res_overall = 0
for res in results:
if not res[3]:
logger.error('Some tests have failed or have not been executed')
logger.error('Overall Result is Fail')
- return 1
+ res_overall = 1
else:
pass
- return 0
+
+ _print_label('Testing LocalAgent on compute nodes')
+ res_agent = local_agent.local_agent_main(logger, conf, computes)
+
+ return 0 if res_overall == 0 and res_agent == 0 else 1
if __name__ == '__main__':