From d1a2d93f2a60af4f6db6041934814e1af27eb027 Mon Sep 17 00:00:00 2001 From: gsmselftest Date: Tue, 18 Oct 2011 20:04:06 +0200 Subject: fix the error --- For Weekly Test/Advance/trueTableClass.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'For Weekly Test/Advance/trueTableClass.py') 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]) + -- cgit v1.2.3-55-g7522