Skip tests requiring devscripts if dch is not there
authorGuido Günther <agx@sigxcpu.org>
Wed, 1 Aug 2012 12:45:33 +0000 (14:45 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 1 Aug 2012 12:49:37 +0000 (14:49 +0200)
so tests don't fail on rpm based systems.

tests/11_test_dch_main.py

index 61cb21d..7c8fee2 100644 (file)
@@ -28,6 +28,7 @@ cl_debian = """test-package (0.9-1) unstable; urgency=low
  -- Debian Maintainer <maint@debian.org>  Mon, 17 Oct 2011 10:15:22 +0200
 """
 
+@unittest.skipIf(not os.path.exists('/usr/bin/dch'), "Dch not found")
 class TestScriptDch(DebianGitTestRepo):
     """Test git-dch"""