Some changes for deldb
diff --git a/TestON/tests/RCOnosScale4nodes/RCOnosScale4nodes.py b/TestON/tests/RCOnosScale4nodes/RCOnosScale4nodes.py
index 07fd8ff..53bc154 100644
--- a/TestON/tests/RCOnosScale4nodes/RCOnosScale4nodes.py
+++ b/TestON/tests/RCOnosScale4nodes/RCOnosScale4nodes.py
@@ -21,15 +21,13 @@
main.RamCloud2.stop_serv()
main.RamCloud3.stop_serv()
main.RamCloud4.stop_serv()
- main.ONOS1.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS1.handle.sendline("y")
- main.ONOS2.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS2.handle.sendline("y")
- main.ONOS3.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS3.handle.sendline("y")
- main.ONOS4.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS4.handle.sendline("y")
+ time.sleep(4)
+ main.RamCloud1.del_db()
+ main.RamCloud2.del_db()
+ main.RamCloud3.del_db()
+ main.RamCloud4.del_db()
time.sleep(10)
+
main.RamCloud1.start_coor()
time.sleep(10)
main.RamCloud1.start_serv()
@@ -275,3 +273,19 @@
utilities.assert_equals(expect=main.TRUE,actual=test)
+ def CASE66(self, main):
+ main.log.report("Checking ONOS logs for exceptions")
+ check1 = main.ONOS1.check_exceptions()
+ main.log.report("Exceptions in ONOS1 logs: \n" + check1)
+ check2 = main.ONOS2.check_exceptions()
+ main.log.report("Exceptions in ONOS2 logs: \n" + check2)
+ check3 = main.ONOS3.check_exceptions()
+ main.log.report("Exceptions in ONOS3 logs: \n" + check3)
+ check4 = main.ONOS4.check_exceptions()
+ main.log.report("Exceptions in ONOS4 logs: \n" + check4)
+ result = main.FALSE
+ if (check1 or check2 or check3 or check4):
+ result = main.TRUE
+ utilities.assert_equals(expect=main.TRUE,actual=result,onpass="No Exceptions found in the logs",onfail="Exceptions found")
+
+