From: Markus Lehtonen Date: Tue, 23 Apr 2013 07:59:41 +0000 (+0300) Subject: tests: fix for older dch X-Git-Tag: debian/0.6.0_git20130506~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f19ff5cd0353d3212d7dfcdb5960086bf80813a3;p=tools%2Fgit-buildpackage.git tests: fix for older dch Prevent dch from asking user input during tests. Signed-off-by: Markus Lehtonen --- diff --git a/tests/11_test_dch_main.py b/tests/11_test_dch_main.py index 4449829..7a0f6df 100644 --- a/tests/11_test_dch_main.py +++ b/tests/11_test_dch_main.py @@ -186,7 +186,7 @@ class TestScriptDch(DebianGitTestRepo): def test_dch_main_new_upstream_version_with_distribution(self): """Test dch.py like git-dch script does: new upstream version - set distribution""" - options = ["--distribution=testing"] + options = ["--distribution=testing", "--force-distribution"] lines = self.run_dch(options) self.assertEqual("test-package (1.0-1) testing; urgency=low\n", lines[0]) self.assertIn(""" * added debian/control\n""", lines) @@ -195,7 +195,7 @@ class TestScriptDch(DebianGitTestRepo): def test_dch_main_new_upstream_version_with_release_distribution(self): """Test dch.py like git-dch script does: new upstream version - release - set distribution""" options = ["--release"] - options.append("--distribution=testing") + options.extend(["--distribution=testing", "--force-distribution"]) lines = self.run_dch(options) self.assertEqual("test-package (1.0-1) testing; urgency=low\n", lines[0]) self.assertIn(""" * added debian/control\n""", lines)