commit | 4a87b2a16b4e1483aa932c3f19133cf3588fe9ea | [log] [tgz] |
---|---|---|
author | Devin Lim <devin@opennetworking.org> | Wed Oct 11 18:23:12 2017 -0700 |
committer | Devin Lim <devin@opennetworking.org> | Fri Oct 13 11:37:48 2017 -0700 |
tree | 4c816b890d4707ac66903cc872cacdf54af7e328 | |
parent | 5eac6973f45b67b83029c2f1067e2ca221570677 [diff] |
Adding more ONOS stability checks for ScaleTopoTest Change-Id: Ib09fe5a10a3dada32bc4ac1d89f872668552acdb
diff --git a/TestON/tests/SCPF/SCPFscaleTopo/dependencies/scaleTopoFunction.py b/TestON/tests/SCPF/SCPFscaleTopo/dependencies/scaleTopoFunction.py index 964f0c2..a48ddf7 100644 --- a/TestON/tests/SCPF/SCPFscaleTopo/dependencies/scaleTopoFunction.py +++ b/TestON/tests/SCPF/SCPFscaleTopo/dependencies/scaleTopoFunction.py
@@ -440,3 +440,15 @@ restartResult = main.FALSE return restartResult + +def checkingONOSStablility( main ): + compareRetry = 0 + while compareRetry < 3 and main.postResult: + for controller in main.Cluster.active(): + if controller.CLI.summary() is None: + main.info.error( "Something happened to ONOS. Skip the rest of the steps" ) + main.postResult = False + break + time.sleep( 5 ) + compareRetry += 1 + time.sleep( 10 )