diff --git a/tests/test-zstd-speed.py b/tests/test-zstd-speed.py index 9a9a3992d..5cc07fb37 100755 --- a/tests/test-zstd-speed.py +++ b/tests/test-zstd-speed.py @@ -8,9 +8,9 @@ import time import traceback from subprocess import Popen, PIPE -repo_url = 'https://github.com/Cyan4973/zstd.git' +default_repo_url = 'https://github.com/Cyan4973/zstd.git' test_dir_name = 'speedTest' - +email_header = '[ZSTD_speedTest]' def log(text): print time.strftime("%Y/%m/%d %H:%M:%S") + ' - ' + text @@ -126,14 +126,23 @@ def benchmark_and_compare(branch, commit, resultsFileName, lastCLevel, testFileP return text +def send_simple_email(emails, email_topic, have_mutt, have_mail): + if have_mutt: + execute('mutt -s "' + email_header + ' ' + email_topic + '" ' + emails + '