summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/Advance/trueTableClass.py
diff options
context:
space:
mode:
authorgsmselftest2011-10-18 20:04:06 +0200
committergsmselftest2011-10-18 20:04:06 +0200
commitd1a2d93f2a60af4f6db6041934814e1af27eb027 (patch)
tree0921aa781487de69e6c2eca03229df05dde219b3 /For Weekly Test/Advance/trueTableClass.py
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-d1a2d93f2a60af4f6db6041934814e1af27eb027.tar.gz
gsm-selftest-d1a2d93f2a60af4f6db6041934814e1af27eb027.tar.xz
gsm-selftest-d1a2d93f2a60af4f6db6041934814e1af27eb027.zip
fix the error
Diffstat (limited to 'For Weekly Test/Advance/trueTableClass.py')
-rwxr-xr-xFor Weekly Test/Advance/trueTableClass.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/For Weekly Test/Advance/trueTableClass.py b/For Weekly Test/Advance/trueTableClass.py
index 3e53194..020b5f2 100755
--- a/For Weekly Test/Advance/trueTableClass.py
+++ b/For Weekly Test/Advance/trueTableClass.py
@@ -51,13 +51,13 @@ class trueTable:
result=x[2]
stop = False
j=1
-
+
if call[0:5]=='GSMRZ' or dest[0:5]=='GSMRZ':
while stop != True:
if j != i:
key = 'GSMRZ'+str(j)
if key == call or key == dest:
- stop = True
+
btsName = 'nanoBts '+str(j)
if result == '200':
btsName = 'nanoBts '+str(j)
@@ -82,6 +82,7 @@ class trueTable:
if dest == z:
self.incomingRZ = True # find the result for imcoming call to GSM RZ from external RZ network
elif result == '486':
+ found = False
if key == call:# and dest == 'landline':
for z in externalRZList:
if dest == z:
@@ -90,7 +91,13 @@ class trueTable:
for z in externalRZList:
if call == z:
self.incomingRZ = False
- self.nanoBts.append([btsName,False])
+ for y in self.nanoBts: #find the existing nanoBts result
+ name = y[0]
+ if name == btsName:
+ found = True
+ if found != True and y[1] != True:
+ self.nanoBts.append([btsName,False])
+
if result == '998' and key == dest: # find how to solve this!!!
devices = 'GSMRZ'+str(j)
self.nanoBts.append([devices,result])
@@ -100,7 +107,6 @@ class trueTable:
self.nanoBts.append([devices,result])
print ''
-
j = j+1
elif j == i:
stop = True
@@ -131,3 +137,4 @@ class trueTable:
if found != True:
self.nanoBts.append([dest,result])
+