Commit a143cb27 authored by Andrea Petrucci's avatar Andrea Petrucci
Browse files

references #226: fix test cases for metadata and python3 new behaviour list and NoneType

parent 6521bc65
......@@ -8,9 +8,12 @@ class case_2x1_EVMmetaData(TestCase):
def runTest(self):
self.configureEvB(maxTries=20)
self.enableEvB()
self.checkEVM(6296)
# Remove size the FED 1022
#self.checkEVM(6296)
self.checkEVM(6144)
self.checkRU(24576)
self.checkBU(30872)
#self.checkBU(30872)
self.checkBU(30720)
self.checkAppParam('nbCorruptedEvents','unsignedLong',0,operator.eq,"BU")
self.checkAppParam('nbEventsWithCRCerrors','unsignedLong',0,operator.eq,"BU")
self.stopEvB()
......@@ -22,7 +25,7 @@ class case_2x1_EVMmetaData(TestCase):
('inputSource','string','Local'),
# Removed pseudo FED till the MetaDataRetrieverDIPBridge works
#('fedSourceIds','unsignedInt',(512,25,17,1022))
('fedSourceIds','unsignedInt',(512,25,17,1022))
('fedSourceIds','unsignedInt',(512,25,17))
]) )
self._config.add( RU(symbolMap,[
('inputSource','string','Local'),
......
......@@ -9,8 +9,11 @@ class case_2x1_RUmetaData(TestCase):
self.configureEvB(maxTries=20)
self.enableEvB()
self.checkEVM(6144)
self.checkRU(8344)
self.checkBU(14488)
#self.checkRU(8344)
#self.checkBU(14488)
# Remove size the FED 1022
self.checkRU(8192)
self.checkBU(14336)
self.checkAppParam('nbCorruptedEvents','unsignedLong',0,operator.eq,"BU")
self.checkAppParam('nbEventsWithCRCerrors','unsignedLong',0,operator.eq,"BU")
self.stopEvB()
......
......@@ -8,9 +8,12 @@ class case_2x1_metaData(TestCase):
def runTest(self):
self.configureEvB(maxTries=20)
self.enableEvB()
self.checkEVM(6296)
#self.checkEVM(6296)
#self.checkRU(24576)
# Remove size the FED 1022
self.checkEVM(6144)
self.checkRU(24576)
self.checkBU(30872)
self.checkBU(30720)
self.checkAppParam('nbCorruptedEvents','unsignedLong',0,operator.eq,"BU")
self.checkAppParam('nbEventsWithCRCerrors','unsignedLong',0,operator.eq,"BU")
self.stopEvB()
......
......@@ -10,8 +10,11 @@ class case_3x1_metaData(TestCase):
self.enableEvB()
self.checkEVM(6144)
self.checkRU(24576,1)
self.checkRU(152,2)
self.checkBU(30872)
#self.checkRU(152,2)
#self.checkBU(30872)
# Remove size the FED 1022
self.checkRU(2048,2)
self.checkBU(32768)
self.checkAppParam('nbCorruptedEvents','unsignedLong',0,operator.eq,"BU")
self.checkAppParam('nbEventsWithCRCerrors','unsignedLong',0,operator.eq,"BU")
self.stopEvB()
......
......@@ -8,7 +8,7 @@ from Context import FEROL,RU,BU
class case_3x1_noFragments(TestCase):
def runTest(self):
enabledFerol = [0] + range(4,7)
enabledFerol = [0] + list(range(4,7))
testDir="/tmp/evb_test/ramdisk"
runNumber=time.strftime("%s",time.localtime())
runDir=testDir+"/run"+runNumber
......
......@@ -316,7 +316,7 @@ class TestCase:
try:
for application in self._config.applications[app]:
if instance is None or str(instance) == application['instance']:
value = None
value = 0
while not comp(value,expectedValue) and not time.sleep(1):
value = messengers.getParam(paramName,paramType,**application)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment