summaryrefslogtreecommitdiffstats
path: root/testcases/features/domino.py
diff options
context:
space:
mode:
authorUlas Kozat <ulas.kozat@gmail.com>2016-08-09 10:24:06 -0700
committerUlas Kozat <ulas.kozat@gmail.com>2016-08-10 06:10:51 -0700
commitda52e30ffe53f3fa961b5c432380d3e3d934b8de (patch)
tree94093a88ef7a92a8dcdcf3e1688aeb39ec4de31f /testcases/features/domino.py
parent9f923a7996f47b1187a759e28ad0728916d56fc9 (diff)
Add SKIP status if Domino Test Case is skipped
Change-Id: I099010496dadabc18952de88fd6b3740592fc583 Signed-off-by: Ulas Kozat <ulas.kozat@gmail.com>
Diffstat (limited to 'testcases/features/domino.py')
-rwxr-xr-xtestcases/features/domino.py23
1 files changed, 15 insertions, 8 deletions
diff --git a/testcases/features/domino.py b/testcases/features/domino.py
index ff14d066c..e4229b4c7 100755
--- a/testcases/features/domino.py
+++ b/testcases/features/domino.py
@@ -40,9 +40,12 @@ def main():
stop_time = time.time()
duration = round(stop_time - start_time, 1)
- if ret == 0:
+ if ret == 0 and duration > 1:
logger.info("domino OK")
test_status = 'OK'
+ elif ret == 0 and duration <= 1:
+ logger.info("domino TEST SKIPPED")
+ test_status = 'SKIPPED'
else:
logger.info("domino FAILED")
test_status = 'NOK'
@@ -60,6 +63,8 @@ def main():
status = "FAIL"
if details['status'] == "OK":
status = "PASS"
+ elif details['status'] == "SKIPPED":
+ status = "SKIP"
logger.info("Pushing Domino results: TEST_DB_URL=%(db)s pod_name=%(pod)s "
"version=%(v)s scenario=%(s)s criteria=%(c)s details=%(d)s" % {
@@ -71,13 +76,15 @@ def main():
'b': build_tag,
'd': details,
})
- functest_utils.push_results_to_db("domino",
- "domino-multinode",
- logger,
- start_time,
- stop_time,
- status,
- details)
+
+ if status is not "SKIP":
+ functest_utils.push_results_to_db("domino",
+ "domino-multinode",
+ logger,
+ start_time,
+ stop_time,
+ status,
+ details)
if __name__ == '__main__':
main()