Skip to content
Snippets Groups Projects
Commit 67a3184b authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

fix(ci): in case of T1 board defect, no statistics, exit nicely

parent 4c9706a9
No related branches found
No related tags found
No related merge requests found
...@@ -98,6 +98,15 @@ class PhySim: ...@@ -98,6 +98,15 @@ class PhySim:
for line in g: for line in g:
if 'decoding time' in line: if 'decoding time' in line:
runResultsT1.append(line) runResultsT1.append(line)
# In case the T1 board does work properly, there is no statistics
if len(runResultsT1) == 0:
logging.error('no statistics')
HTML.CreateHtmlTestRowQueue(self.runargs, 'KO', ['no statistics'])
self.exitStatus = 1
os.system('mv '+self.__runLogFile+' '+ self.__runLogPath+'/.')
return HTML
info = runResultsT1[0][15:-13] info = runResultsT1[0][15:-13]
result = int(''.join(filter(str.isdigit, info)))/100 result = int(''.join(filter(str.isdigit, info)))/100
#once parsed move the local logfile to its folder for tidiness #once parsed move the local logfile to its folder for tidiness
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment