Commit 99036847 authored by Jelmer Vernooij's avatar Jelmer Vernooij

Fix tests.

parent cd0eae33
......@@ -81,7 +81,7 @@ Lintian-Tags: i-fix-another-tag, no-extension
class DummyFixer(Fixer):
def run(self, basedir, current_version):
def run(self, basedir, current_version, compat_release):
with open(os.path.join(basedir, 'debian/control'), 'a') as f:
f.write('a new line\n')
return FixerResult("Fixed some tag.\nExtended description.",
......@@ -90,7 +90,7 @@ class DummyFixer(Fixer):
class FailingFixer(Fixer):
def run(self, basedir, current_version):
def run(self, basedir, current_version, compat_release):
with open(os.path.join(basedir, 'debian/foo'), 'w') as f:
f.write("blah")
with open(os.path.join(basedir, 'debian/control'), 'a') as f:
......@@ -213,7 +213,7 @@ Arch: all
tree = self.make_test_tree()
class NewFileFixer(Fixer):
def run(self, basedir, current_version):
def run(self, basedir, current_version, compat_release):
with open(os.path.join(basedir, 'debian/somefile'), 'w') as f:
f.write("test")
return FixerResult("Created new file.", ['some-tag'])
......@@ -243,7 +243,7 @@ Arch: all
tree = self.make_test_tree()
class RenameFileFixer(Fixer):
def run(self, basedir, current_version):
def run(self, basedir, current_version, compat_release):
os.rename(os.path.join(basedir, 'debian/control'),
os.path.join(basedir, 'debian/control.blah'))
return FixerResult("Renamed a file.")
......@@ -271,7 +271,7 @@ Arch: all
tree = self.make_test_tree()
class EmptyFixer(Fixer):
def run(self, basedir, current_version):
def run(self, basedir, current_version, compat_release):
return FixerResult("I didn't actually change anything.")
with tree.lock_write():
self.assertRaises(
......
Bump debhelper from deprecated 8 to 11.
Bump debhelper from deprecated 8 to 12.
Fixed-Lintian-Tags: package-uses-deprecated-debhelper-compat-version
......@@ -3,7 +3,7 @@ Section: admin
Priority: optional
Maintainer: Jelmer Vernooij <jelmer@debian.org>
Build-Depends:
debhelper (>= 11~),
debhelper (>= 12~),
pkg-config,
uuid-dev
Standards-Version: 4.2.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment