Fixed: adding python changes to master.

This commit is contained in:
Richard Cordovano 2014-01-24 10:42:37 -08:00 committed by alexjacks92
parent e8d265102c
commit d0ff0151a0
2 changed files with 8 additions and 0 deletions

1
test/script/regression.py Normal file → Executable file
View File

@ -719,6 +719,7 @@ class TestConfiguration(object):
self.email_enabled = True self.email_enabled = True
print("Email will be sent to ", self.mail_to) print("Email will be sent to ", self.mail_to)
else: else:
self.email_enabled = False
print("No email will be sent.") print("No email will be sent.")

7
test/script/srcupdater.py Normal file → Executable file
View File

@ -74,6 +74,13 @@ def gitPull(TskOrAutopsy, branch):
gppth = make_local_path("..", "GitPullOutput" + TskOrAutopsy + ".txt") gppth = make_local_path("..", "GitPullOutput" + TskOrAutopsy + ".txt")
attachl.append(gppth) attachl.append(gppth)
gpout = open(gppth, 'a') gpout = open(gppth, 'a')
if TskOrAutopsy == "sleuthkit":
ccwd = os.path.join("..", "..", "..", "sleuthkit")
else:
ccwd = os.path.join("..", "..")
print("Checking out " + branch)
call = ["git", "checkout", branch]
subprocess.call(call, stdout=sys.stdout, cwd=ccwd)
toPull = "https://www.github.com/sleuthkit/" + TskOrAutopsy toPull = "https://www.github.com/sleuthkit/" + TskOrAutopsy
call = ["git", "pull", toPull, branch] call = ["git", "pull", toPull, branch]
if TskOrAutopsy == "sleuthkit": if TskOrAutopsy == "sleuthkit":