]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
test-zstd-speed.py: ignore "coverity_scan" and "gh-pages" branches
authorinikep <inikep@gmail.com>
Tue, 19 Jul 2016 11:09:00 +0000 (13:09 +0200)
committerinikep <inikep@gmail.com>
Tue, 19 Jul 2016 11:09:00 +0000 (13:09 +0200)
tests/test-zstd-speed.py

index 522227a4e12fb0c1a5eb5792c189ab806e2b4c3b..eaeb4bf995ee3637381f12578fb2b222238f1af2 100755 (executable)
@@ -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):