aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-08-27 20:17:45 +0300
committerGuido Günther <agx@sigxcpu.org>2013-09-04 22:15:55 +0200
commit8cdc06fc46bda7723d7c2d9ac094c24e0d2410bd (patch)
treea73183748e3d08cfe29d9c0c316cedbf4402b12d /tests
parent0eeafba4381cf2d82475b59a0488c6467b668959 (diff)
ComponentTestBase: more verbose output in case of branch mismatch
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/component/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/component/__init__.py b/tests/component/__init__.py
index 115f9951..9bc126dc 100644
--- a/tests/component/__init__.py
+++ b/tests/component/__init__.py
@@ -121,7 +121,10 @@ class ComponentTestBase(object):
branch = repo.branch
assert branch == current_branch
assert repo.is_clean()
- assert set(repo.get_local_branches()) == set(branches)
+ local_branches = repo.get_local_branches()
+ assert_msg = "Branches: expected %s, found %s" % (branches,
+ local_branches)
+ assert set(local_branches) == set(branches), assert_msg
if files is not None:
# Get files of the working copy recursively
local = set()