Commit a04c78af authored by German Leon's avatar German Leon
Browse files

Retoques en los resultados

parent 27bf99f6
......@@ -82,11 +82,11 @@ class BitFlip:
#Almaceno en un dictionario los valores de los registros
regs={}
for x in valores:
print(x)
#print(x)
m = re.match(r".*R(\d+).*0x([0-9a-fA-F]+).*", x)
if m:
regs[m.group(1)]=m.group(2)
print (str(m.group(1))+":= "+str(m.group(2)))
#print (str(m.group(1))+":= "+str(m.group(2)))
#print(regs)
#print ("========DR")
return regs
......
......@@ -223,28 +223,26 @@ def check_sdcs_and_app_crash(logging, sdc_check_script, inj_output_path, inj_err
with open(diff_log_path, 'r') as fi:
out_lines = fi.readlines()
if len(out_lines) != 0:
# Check if NVIDIA signals on output
for line in out_lines:
if 'PASS' in line:
print("PASS=="+line+"====")
is_masked= True
break
if 'FAIL' in line:
print("FAIL=="+line+"====")
is_sdc= True
break
for carol_fi_signal in cp.SIGNALS:
for line in out_lines:
if carol_fi_signal in line:
print("FAIL=="+line+"====")
#print("FAIL=="+line+"====")
is_app_crash[0] = True
if len (is_app_crash) == 1:
is_app_crash.append(carol_fi_signal)
else:
is_app_crash[1]=is_app_crash[1]+" "+carol_fi_signal
break
if (len(is_app_crash) >0):
# Check if NVIDIA signals on output
is_masked= True
for line in out_lines:
if 'FAIL' in line:
#print("FAIL=="+line+"====")
is_sdc= True
is_masked=False
break
# if is_app_crash[0]:
# break
......
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