summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode
diff options
context:
space:
mode:
authorTriatmoko2011-10-21 23:59:25 +0200
committerTriatmoko2011-10-21 23:59:25 +0200
commit4f7ace84f6a587be6a30775da3743f58f9d50f81 (patch)
tree3f0df96b77db51c5da74cbbae8ec7c029c0565c7 /For Weekly Test/tricode
parentreport file (diff)
downloadgsm-selftest-4f7ace84f6a587be6a30775da3743f58f9d50f81.tar.gz
gsm-selftest-4f7ace84f6a587be6a30775da3743f58f9d50f81.tar.xz
gsm-selftest-4f7ace84f6a587be6a30775da3743f58f9d50f81.zip
fix smart test
Diffstat (limited to 'For Weekly Test/tricode')
-rwxr-xr-xFor Weekly Test/tricode/initTestClass.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/For Weekly Test/tricode/initTestClass.py b/For Weekly Test/tricode/initTestClass.py
index 73b06a7..0e3020e 100755
--- a/For Weekly Test/tricode/initTestClass.py
+++ b/For Weekly Test/tricode/initTestClass.py
@@ -214,6 +214,23 @@ class doTest:
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
+ # 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
+ 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:
+ callFrom = 'sip'
+ callTo = dest[1]
+ self.testDestination(callFrom, callTo, 2)
+ rem.append(dest)
#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':