From: inikep Date: Tue, 19 Jul 2016 11:09:00 +0000 (+0200) Subject: test-zstd-speed.py: ignore "coverity_scan" and "gh-pages" branches X-Git-Tag: v0.8.0^2~70^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5beea715fb1a33abc2d1ece033fdd7e1623f39;p=thirdparty%2Fzstd.git test-zstd-speed.py: ignore "coverity_scan" and "gh-pages" branches --- diff --git a/tests/test-zstd-speed.py b/tests/test-zstd-speed.py index 522227a4e..eaeb4bf99 100755 --- a/tests/test-zstd-speed.py +++ b/tests/test-zstd-speed.py @@ -72,11 +72,12 @@ def send_email_with_attachments(branch, commit, last_commit, emails, text, resul def git_get_branches(): execute('git fetch -p') - output = execute('git branch -rl') - for line in output: - if "HEAD" in line: - output.remove(line) # remove "origin/HEAD -> origin/dev" - return map(lambda l: l.strip(), output) + branches = execute('git branch -rl') + output = [] + for line in branches: + if ("HEAD" not in line) and ("coverity_scan" not in line) and ("gh-pages" not in line): + output.append(line.strip()) + return output def git_get_changes(branch, commit, last_commit):