aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/11_test_dch_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/11_test_dch_main.py')
-rw-r--r--tests/11_test_dch_main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/11_test_dch_main.py b/tests/11_test_dch_main.py
index a9b2146a..58571687 100644
--- a/tests/11_test_dch_main.py
+++ b/tests/11_test_dch_main.py
@@ -81,7 +81,8 @@ class TestScriptDch(DebianGitTestRepo):
options.extend(dch_options)
ret = dch.main(options)
self.assertEqual(ret, 0)
- return open("debian/changelog").readlines()
+ cl = os.path.join(self.repo.path, 'debian/changelog')
+ return open(cl).readlines()
def test_dch_main_new_upstream_version(self):
"""Test dch.py like gbp dch script does: new upstream version"""
@@ -399,3 +400,7 @@ class TestScriptDch(DebianGitTestRepo):
options = ["--no-git-author", '-S', '-a']
lines = self.run_dch(options)
self.assertNotIn("-- gbp test user", "\n".join(lines))
+
+ def test_dch_subdir(self):
+ os.chdir('debian/')
+ self.run_dch()