Go to the documentation of this file.00001
00002
00003
00004
00005 f1 = open("o2o.log", "r")
00006 oTSC = ""
00007 oGT = ""
00008 oGTRUNSETTINGS = ""
00009 while True:
00010 a = f1.readline()
00011 if a[0] == '-':
00012 break
00013 if a.find("Current TSC key = ") != -1:
00014 oTSC = a[18:].strip()
00015 elif a.find("GT ") != -1:
00016 oGT = a[3:].strip()
00017 elif a.find("L1GtPrescaleFactorsAlgoTrigRcd ") != -1:
00018 oGTRUNSETTINGS = a[31:].strip()
00019 f1.close()
00020
00021 f2 = open("wbm.log", "r")
00022 wTSC = f2.readline().strip()
00023 wGT = f2.readline().strip()
00024 wGTRUNSETTINGS = f2.readline().strip()
00025 f2.close()
00026
00027 f = open("val.log", "w")
00028 if oTSC == wTSC and oGT == wGT and oGTRUNSETTINGS == wGTRUNSETTINGS:
00029 f.write("successful")
00030 else:
00031 f.write("failed")
00032 f.close()