diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-03-05 17:49:06 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-03-22 21:00:18 +0100 |
commit | 7709f217c05f22d6c06f61cbc83b78790e2e1cbc (patch) | |
tree | 82299aa51da94e25ddea02e53a61dc6670d17d31 /tests | |
parent | 6fc1c08c6cc0756fb9f75156b4bc562a61bbac2e (diff) | |
download | git-buildpackage-7709f217c05f22d6c06f61cbc83b78790e2e1cbc.tar.gz git-buildpackage-7709f217c05f22d6c06f61cbc83b78790e2e1cbc.tar.bz2 git-buildpackage-7709f217c05f22d6c06f61cbc83b78790e2e1cbc.zip |
tests: skip test_Changelog if 'dch' tool is not available
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_Changelog.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_Changelog.py b/tests/test_Changelog.py index 48b370e7..c67aaa06 100644 --- a/tests/test_Changelog.py +++ b/tests/test_Changelog.py @@ -4,6 +4,9 @@ Test L{gbp.deb.changelog.ChangeLog} """ +import os +import nose + cl_debian = """git-buildpackage (0.5.32) unstable; urgency=low * [efe9220] Use known_compressions in guess_upstream_version too @@ -42,6 +45,10 @@ cl_epoch="""xserver-xorg-video-nv (1:1.2.0-3) unstable; urgency=low -- David Nusinow <dnusinow@debian.org> Mon, 18 Sep 2006 19:57:45 -0400 """ +def setup(): + """Setup test module""" + if not os.path.exists('/usr/bin/dch'): + raise nose.SkipTest('dch tool not present') def test_parse_debian_only(): """ |