summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode
diff options
context:
space:
mode:
authorTriatmoko2011-10-22 01:26:53 +0200
committerTriatmoko2011-10-22 01:26:53 +0200
commit48e7b0ac65fbe2b57234bcaf7d1a388cea88a0b2 (patch)
tree8758d122024af4c58432e48509bd047865d52a4d /For Weekly Test/tricode
parent still find the bugs (diff)
downloadgsm-selftest-48e7b0ac65fbe2b57234bcaf7d1a388cea88a0b2.tar.gz
gsm-selftest-48e7b0ac65fbe2b57234bcaf7d1a388cea88a0b2.tar.xz
gsm-selftest-48e7b0ac65fbe2b57234bcaf7d1a388cea88a0b2.zip
make simple script
Diffstat (limited to 'For Weekly Test/tricode')
-rwxr-xr-xFor Weekly Test/tricode/initTestClass.py25
1 files changed, 8 insertions, 17 deletions
diff --git a/For Weekly Test/tricode/initTestClass.py b/For Weekly Test/tricode/initTestClass.py
index 120848d..7ddb4f5 100755
--- a/For Weekly Test/tricode/initTestClass.py
+++ b/For Weekly Test/tricode/initTestClass.py
@@ -203,30 +203,21 @@ class doTest:
#checking unsuccess call, to make sure that destination are really unreachable
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 = 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(test[2]) == 200:
- 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':
testDestination = True
- print 'here 1'
+ founds = 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(test[2]) == 200:
- testDestination = False
- print 'here 2'
+ testDestination = False
+
+ if dest[0] != 'sip':
+ founds = False
+ else:
+ #if destination have not tested by other part. try to test from RZ GSM
if int(test[2]) == 200:
for caller in cpgsmRZList:
- print caller
- if caller == dest[0] or caller == dest[1]:
- print 'here the ', caller
+ if caller == test[0] or caller == test[1]:
callFrom = caller
founds = True
if testDestination == True: