mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Fixes to regression.py
This commit is contained in:
parent
d38ec481d2
commit
d9122e1d63
@ -394,13 +394,16 @@ def run_config_test(config_file):
|
|||||||
images.append(value)
|
images.append(value)
|
||||||
#Begin infiniloop
|
#Begin infiniloop
|
||||||
if(newDay()):
|
if(newDay()):
|
||||||
|
global daycount
|
||||||
compile()
|
compile()
|
||||||
print("starting process")
|
if(daycount > 0):
|
||||||
outputer = open("ScriptLog.txt", "a")
|
print("starting process")
|
||||||
pid = subprocess.Popen(nxtproc,
|
outputer = open("ScriptLog.txt", "a")
|
||||||
stdout = outputer,
|
pid = subprocess.Popen(nxtproc,
|
||||||
stderr = outputer)
|
stdout = outputer,
|
||||||
sys.exit()
|
stderr = outputer)
|
||||||
|
sys.exit()
|
||||||
|
daycount += 1
|
||||||
for img in images:
|
for img in images:
|
||||||
run_test(img, 0 )
|
run_test(img, 0 )
|
||||||
else:
|
else:
|
||||||
@ -442,6 +445,7 @@ def compile():
|
|||||||
errorem = "The test standard didn't match the gold standard.\n"
|
errorem = "The test standard didn't match the gold standard.\n"
|
||||||
failedbool = False
|
failedbool = False
|
||||||
redosccd = True
|
redosccd = True
|
||||||
|
time.sleep(3600)
|
||||||
compile()
|
compile()
|
||||||
if(redosccd and (not passed)):
|
if(redosccd and (not passed)):
|
||||||
errorem += "Rebuilt properly.\n"
|
errorem += "Rebuilt properly.\n"
|
||||||
@ -1371,12 +1375,13 @@ def vsBuild():
|
|||||||
except IOError as e:
|
except IOError as e:
|
||||||
global errorem
|
global errorem
|
||||||
global attachl
|
global attachl
|
||||||
errorem += "LIBTSK C++ failed to build.\n"
|
|
||||||
attachl.append(VSpth)
|
|
||||||
if(not redo):
|
if(not redo):
|
||||||
|
errorem += "LIBTSK C++ failed to build.\n"
|
||||||
|
attachl.append(VSpth)
|
||||||
send_email()
|
send_email()
|
||||||
redo = True
|
redo = True
|
||||||
if(redo and (not redosccd)):
|
if(redo and (not redosccd)):\
|
||||||
|
time.sleep(3600)
|
||||||
compile()
|
compile()
|
||||||
|
|
||||||
|
|
||||||
@ -1410,18 +1415,20 @@ def antBuild(which, Build):
|
|||||||
if(redo):
|
if(redo):
|
||||||
redosccd = True
|
redosccd = True
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
errorem += "DataModel Java build failed.\n"
|
|
||||||
attachl.append(antpth)
|
|
||||||
if(not redo):
|
if(not redo):
|
||||||
|
errorem += "DataModel Java build failed.\n"
|
||||||
|
attachl.append(antpth)
|
||||||
send_email()
|
send_email()
|
||||||
redo = True
|
redo = True
|
||||||
if(redo and (not redosccd)):
|
if(redo and (not redosccd)):
|
||||||
|
time.sleep(3600)
|
||||||
compile()
|
compile()
|
||||||
elif (succd != 0 and (not redo)):
|
elif (succd != 0 and (not redo)):
|
||||||
errorem += "Autopsy build failed.\n"
|
errorem += "Autopsy build failed.\n"
|
||||||
attachl.append(antpth)
|
attachl.append(antpth)
|
||||||
send_email()
|
send_email()
|
||||||
elif (redo and (not redosccd)):
|
elif (redo and (not redosccd)):
|
||||||
|
time.sleep(3600)
|
||||||
compile()
|
compile()
|
||||||
|
|
||||||
|
|
||||||
@ -1757,7 +1764,6 @@ def main():
|
|||||||
global daycount
|
global daycount
|
||||||
global redo
|
global redo
|
||||||
global passed
|
global passed
|
||||||
setDay()
|
|
||||||
daycount = 0
|
daycount = 0
|
||||||
failedbool = False
|
failedbool = False
|
||||||
redo = False
|
redo = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user