results_files = ""
for filePath in testFilePaths:
fileName = filePath.rpartition('/')[2]
- resultsFileName = working_path + "/results_" + branch.replace("/", "_") + "_" + fileName
+ resultsFileName = working_path + "/results_" + branch.replace("/", "_") + "_" + fileName.replace(".", "_") + ".txt"
last_commit, cspeed, dspeed = get_last_results(resultsFileName)
if not args.dry_run:
testFileNames = args.testFileNames.split()
testFilePaths = []
for fileName in testFileNames:
+ fileName = os.path.expanduser(fileName)
if os.path.isfile(fileName):
testFilePaths.append(os.path.abspath(fileName))
else:
log("ERROR: %s already exists, exiting" % pidfile)
exit(1)
- send_email(args.emails, email_header + ':%s test-zstd-speed.py has been started' % pid, '', have_mutt, have_mail)
+ send_email(args.emails, email_header + ':%s test-zstd-speed.py has been started' % pid, args.message, have_mutt, have_mail)
file(pidfile, 'w').write(pid)
while True:
time.sleep(args.sleepTime)
except KeyboardInterrupt:
os.unlink(pidfile)
- send_email(args.emails, email_header + ':%s test-zstd-speed.py has been stopped' % pid, '', have_mutt, have_mail)
+ send_email(args.emails, email_header + ':%s test-zstd-speed.py has been stopped' % pid, args.message, have_mutt, have_mail)
exit(0)