diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2023-01-17 17:39:07 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2023-02-19 20:01:42 +0300 |
commit | c4e67ed59aeaffd4e3c519c27445e9a776213359 (patch) | |
tree | 0ce1a075738b25a7491428cab4fd8b8907f8e963 /test | |
parent | 6be5440ff6d88db80bf862d04504c74610f7ed7a (diff) |
Revise maintainers module
The data ordered by package name is the one we use the most often, so
make that the primary form.
Also use mtime_cache for the result of parsing cygwin-pkg-maint.
v2:
Fix mkgitolite and reports
Keep maintainers in a list, not a set, because we need "first named
maintainer".
Don't write permissions lines with an empty list of names, as that's
syntactically incorrect.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_calm.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_calm.py b/test/test_calm.py index bd8390d..bc39fdc 100755 --- a/test/test_calm.py +++ b/test/test_calm.py @@ -317,9 +317,11 @@ class CalmTest(unittest.TestCase): def test_maint_pkglist(self): self.maxDiff = None + args = types.SimpleNamespace() + args.homedir = 'testdata/homes' + args.pkglist = 'testdata/pkglist/cygwin-pkg-maint' mlist = {} - mlist = maintainers.add_directories(mlist, 'testdata/homes') - mlist = maintainers.add_packages(mlist, 'testdata/pkglist/cygwin-pkg-maint') + mlist = maintainers.maintainer_list(args) compare_with_expected_file(self, 'testdata/pkglist', mlist) |