diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-23 08:44:53 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-01-23 08:44:53 +0100 |
commit | 53b5af5898a8be27ec5f03d88e3e6c76232f6292 (patch) | |
tree | 9e9a7fd0c52f36cf44ee3f2ace2171f83f051aab /tests/11_test_dch_main.py | |
parent | 06ae8c94198ff280e01d0e04658e096c4dc55711 (diff) |
dch: Allow to run from subdirectory
Resolves #1
Diffstat (limited to 'tests/11_test_dch_main.py')
-rw-r--r-- | tests/11_test_dch_main.py | 7 |
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() |