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.contin = False
self.gold_creation = False self.gold_creation = False
self.daily = False self.daily = False
self.fr = False
def parse(self): def parse(self):
global nxtproc global nxtproc
@ -140,6 +141,9 @@ class Args:
elif arg == "-d" or arg == "--daily": elif arg == "-d" or arg == "--daily":
printout("Running daily") printout("Running daily")
self.daily = True self.daily = True
elif arg == "-fr" or arg == "--forcerun":
printout("Not downloading new images")
self.fr = True
else: else:
printout(usage()) printout(usage())
return False return False
@ -1668,6 +1672,15 @@ def main():
global daycount global daycount
global redo global redo
global passed 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 = ["ant"]
antin.append("-f") antin.append("-f")
antin.append(os.path.join("..","..","build.xml")) antin.append(os.path.join("..","..","build.xml"))
@ -1677,14 +1690,6 @@ def main():
elif SYS is OS.WIN: elif SYS is OS.WIN:
theproc = subprocess.Popen(antin, shell = True, stdout=subprocess.PIPE) theproc = subprocess.Popen(antin, shell = True, stdout=subprocess.PIPE)
theproc.communicate() 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 = [] attachl = []
passed = False passed = False
# The arguments were given wrong: # The arguments were given wrong: