diff options
author | 2018-03-15 21:46:37 +0000 | |
---|---|---|
committer | 2018-03-15 21:59:54 +0000 | |
commit | f6e7b3b48f49a607da05663d7963945849e04002 (patch) | |
tree | ac8d019ed82aed7fc6831017f599ed9abc4ab909 /baro_tests/tests.py | |
parent | 307db2dfb4050619601f9e02375d4c64e5525c43 (diff) |
Update functest to fix failing tests
* MCE log plugin was failing becaue it wasn't enables
* Updated a check for kernel version to match Fraser
compute nodes on Apex
* RDT was failing when virtual compute nodes were used
* Add check to detect whether compute node is a VM
* Skip RDT when running in a VM
* Gnocchi metrics were failing
* increase the wait time between checking metrics
* CSV checks were failing on Hugepages
* functest was assuming that tests were running on
a system with at least two NUMA nodes
* Only check for metrics on node0 of the system
* Report was showing FAIL even if a test was not executed
* Update the report output to show SKIP instead
JIRA: BAROMETER-91
Change-Id: I4f70fc84fce80054a7aca2116357b0233f355f70
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'baro_tests/tests.py')
-rw-r--r-- | baro_tests/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/baro_tests/tests.py b/baro_tests/tests.py index 580ee4d2..02eca90a 100644 --- a/baro_tests/tests.py +++ b/baro_tests/tests.py @@ -224,7 +224,9 @@ def test_csv_handles_plugin_data( + 'to interval...') for metric in plugin_metrics: logger.debug('{0} {1} {2} ... '.format(metric[0], metric[1], metric[2])) - if math.floor(metric[3] - metric[2]) > interval: + # When there's a small interval or many metrics, there may be a slight + # delay in writing the metrics. e.g. a gap of 1.* is okay for an interval of 1 + if math.floor(metric[3] - metric[2]) > interval + 1: logger.error( 'Time of last two entries differ by ' + '{}, but interval is {}'.format( |