test-zstd-speed.py: ignore "coverity_scan" and "gh-pages" branches

This commit is contained in:
inikep 2016-07-19 13:09:00 +02:00
parent 0a0403da9e
commit 6e5beea715

View File

@ -72,11 +72,12 @@ def send_email_with_attachments(branch, commit, last_commit, emails, text, resul
def git_get_branches(): def git_get_branches():
execute('git fetch -p') execute('git fetch -p')
output = execute('git branch -rl') branches = execute('git branch -rl')
for line in output: output = []
if "HEAD" in line: for line in branches:
output.remove(line) # remove "origin/HEAD -> origin/dev" if ("HEAD" not in line) and ("coverity_scan" not in line) and ("gh-pages" not in line):
return map(lambda l: l.strip(), output) output.append(line.strip())
return output
def git_get_changes(branch, commit, last_commit): def git_get_changes(branch, commit, last_commit):