From 83168e50202126fe0364d554d22592d0fc71e9ba Mon Sep 17 00:00:00 2001 From: Triatmoko Date: Sat, 22 Oct 2011 00:32:54 +0200 Subject: smart test fix the bugs --- For Weekly Test/tricode/initTestClass.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/For Weekly Test/tricode/initTestClass.py b/For Weekly Test/tricode/initTestClass.py index 0e3020e..74d37f8 100755 --- a/For Weekly Test/tricode/initTestClass.py +++ b/For Weekly Test/tricode/initTestClass.py @@ -204,29 +204,29 @@ class doTest: for dest in self.smartResultList: #check unsuccess call and did the test have already tried, 2 means has been check if int(dest[2]) == 486 and int(dest[3]) != 2 and dest[1] != 'sip' and dest[0] != 'sip': - testDestination = False + testDestination = True # make sure that destination have not tested by another part and give success result. for test in self.smartResultList: if test[1] == dest[1] and int(dest[2]) == 200: - testDestination = True + testDestination = False if testDestination == True: callFrom = 'sip' callTo = dest[1] self.testDestination(callFrom, callTo, 2) rem.append(dest) - if int(dest[2]) == 486 and int(dest[3]) != 2 and dest[1] != 'sip' and dest[0] == 'sip': - testDestination = False + if int(dest[2]) == 486 and int(dest[3]) != 2 and dest[1] != 'sip': + testDestination = True # make sure that destination have not tested by another part and give success result. for test in self.smartResultList: if test[1] == dest[1] and int(dest[2]) == 200: - testDestination = True + testDestination = False if int(dest[2]) == 200: for caller in cpgsmRZList: if caller == dest[0] or caller == dest[1]: callFrom = caller founds = True - if testDestination == True: - if founds == True: + if testDestination != True: + if founds != True: callFrom = 'sip' callTo = dest[1] self.testDestination(callFrom, callTo, 2) @@ -234,11 +234,11 @@ class doTest: #check unsuccess call because caller handler having problem if int(dest[2]) == 999 and int(dest[3]) != 2 and dest[1] != 'sip' and dest[1] != 'sip': - testDestination = False + testDestination = True # make sure that destination have not tested by another part and give success result. for test in self.smartResultList: if test[1] == dest[1] and int(dest[2]) != 200: - testDestination = True + testDestination = False # mean dont need to make test if testDestination == True: callFrom = 'sip' self.testDestination(callFrom, dest[1], 2) -- cgit v1.2.3-55-g7522