diff options
author | Guido Günther <agx@sigxcpu.org> | 2021-03-01 14:57:43 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2021-03-01 15:06:10 +0100 |
commit | d6a92cc6c1b4ac86ae0e83929bc33b5fca1e6359 (patch) | |
tree | fa7f4942ce74aa21bb79b04fae3000ab96d2c6a9 /tests | |
parent | 0d2178950bec2d96a064bd0fd33d702cad4a69c2 (diff) |
tests: Match the correct files in filter tests
Verify we match at all by adding a positive test as well
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component/deb/test_import_orig.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/component/deb/test_import_orig.py b/tests/component/deb/test_import_orig.py index de1aa2e6..9581f5de 100644 --- a/tests/component/deb/test_import_orig.py +++ b/tests/component/deb/test_import_orig.py @@ -258,7 +258,8 @@ class TestImportOrig(ComponentTestBase): tags=['debian/2.6-2', 'upstream/2.6', 'upstream/2.8']) self._check_component_tarballs(repo, ['foo/test1', 'foo/test2']) - ok_('README' not in repo.ls_tree('HEAD'), + ok_(b'COPYING' in repo.ls_tree('HEAD')) + ok_(b'README' not in repo.ls_tree('HEAD'), "README not filtered out of %s" % repo.ls_tree('HEAD')) tar = '../hello-debhelper_2.8.orig.tar.gz' @@ -299,9 +300,10 @@ class TestImportOrig(ComponentTestBase): tags=['debian/2.6-2', 'upstream/2.6', 'upstream/2.8']) self._check_component_tarballs(repo, ['foo/test1', 'foo/test2']) - ok_('README' not in repo.ls_tree('HEAD'), + ok_(b'COPYING' in repo.ls_tree('HEAD')) + ok_(b'README' not in repo.ls_tree('HEAD'), "README not filtered out of %s" % repo.ls_tree('HEAD')) - ok_('TODO' not in repo.ls_tree('HEAD'), + ok_(b'TODO' not in repo.ls_tree('HEAD'), "TODO not filtered out of %s" % repo.ls_tree('HEAD')) tar = '../hello-debhelper_2.8.orig.tar.gz' |