From b38f67b7162f7d3e5ca75eae58be06163879d22c Mon Sep 17 00:00:00 2001 From: Triatmoko Date: Fri, 18 Nov 2011 02:44:10 +0100 Subject: found error on the smart test --- Under-Testing/Server-Code-New/gsmselftest.py | 5 ++--- Under-Testing/Server-Code-New/truthtableClass.py | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Under-Testing/Server-Code-New') diff --git a/Under-Testing/Server-Code-New/gsmselftest.py b/Under-Testing/Server-Code-New/gsmselftest.py index 1aeaa16..0824cf4 100644 --- a/Under-Testing/Server-Code-New/gsmselftest.py +++ b/Under-Testing/Server-Code-New/gsmselftest.py @@ -209,8 +209,7 @@ def smartTest(): testDest(callFrom, callTo, 1) gsmRZList.remove(callTo) destList.remove(callTo) - - + for callFrom in gsmRZList: i = random.randint(0, len(destList)-1) #Check whether the caller and dest are same @@ -356,7 +355,7 @@ def doSmartTest(status): if status == 'NAGIOS': initNagiosString(result) - elif status == True: + elif status == False: initTrueTable(result) if status == True: diff --git a/Under-Testing/Server-Code-New/truthtableClass.py b/Under-Testing/Server-Code-New/truthtableClass.py index cf20bc8..3195dee 100644 --- a/Under-Testing/Server-Code-New/truthtableClass.py +++ b/Under-Testing/Server-Code-New/truthtableClass.py @@ -85,7 +85,7 @@ class trueTable: if status[2] == 'OK': self.OK = self.OK+1 - elif status[2] == 'NOT OK: + elif status[2] == 'NOT OK': self.FAILED = self.FAILED+1 else: self.handlerError = self.handlerError+1 @@ -102,6 +102,7 @@ class trueTable: if device[0:5] == 'GSMEx' or device == 'landline': externalRZList.append(device) # fetch into the list self.db.closeDBConn() + lists = self.resultsList self.nanoBts = list() gsmResultList = list() -- cgit v1.2.3-55-g7522