Added argument to ignore new images.

This commit is contained in:
Sean-M 2013-04-12 12:01:14 -04:00
parent b3e0e59462
commit b42b592b07

View File

@ -72,6 +72,7 @@ class Args:
self.contin = False
self.gold_creation = False
self.daily = False
self.fr = False
def parse(self):
global nxtproc
@ -140,6 +141,9 @@ class Args:
elif arg == "-d" or arg == "--daily":
printout("Running daily")
self.daily = True
elif arg == "-fr" or arg == "--forcerun":
printout("Not downloading new images")
self.fr = True
else:
printout(usage())
return False
@ -1668,6 +1672,15 @@ def main():
global daycount
global redo
global passed
daycount = 0
failedbool = False
redo = False
errorem = "The test standard didn't match the gold standard.\n"
case = TestAutopsy()
database = Database()
printout("")
args = Args()
if(not args.fr):
antin = ["ant"]
antin.append("-f")
antin.append(os.path.join("..","..","build.xml"))
@ -1677,14 +1690,6 @@ def main():
elif SYS is OS.WIN:
theproc = subprocess.Popen(antin, shell = True, stdout=subprocess.PIPE)
theproc.communicate()
daycount = 0
failedbool = False
redo = False
errorem = "The test standard didn't match the gold standard.\n"
case = TestAutopsy()
database = Database()
printout("")
args = Args()
attachl = []
passed = False
# The arguments were given wrong: