diff options
author | 2021-03-18 19:18:32 -0600 | |
---|---|---|
committer | 2021-03-18 19:18:32 -0600 | |
commit | 24e26a91018e2cd314fe54ae1b7af5df4fe1ac87 (patch) | |
tree | d0f206ed58ee65ff2ab89d34c08d2c7c2243378e /tests | |
parent | pkgdev commit: sort versions for revbump addition (diff) | |
download | pkgdev-24e26a91018e2cd314fe54ae1b7af5df4fe1ac87.tar.gz pkgdev-24e26a91018e2cd314fe54ae1b7af5df4fe1ac87.tar.bz2 pkgdev-24e26a91018e2cd314fe54ae1b7af5df4fe1ac87.zip |
tests: verify git rename summary
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/test_pkgdev_commit.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py index a5da38e..98991e8 100644 --- a/tests/scripts/test_pkgdev_commit.py +++ b/tests/scripts/test_pkgdev_commit.py @@ -408,13 +408,22 @@ class TestPkgdevCommit: # multiple additions repo.create_ebuild('cat/pkg-2') - repo.create_ebuild('cat/pkg-3', eapi=6) - assert commit() == 'cat/pkg: add 2, 3' + repo.create_ebuild('cat/pkg-3') + repo.create_ebuild('cat/pkg-4', eapi=6) + assert commit() == 'cat/pkg: add 2, 3, 4' # revbump updating EAPI - repo.create_ebuild('cat/pkg-3-r1', eapi=7) + repo.create_ebuild('cat/pkg-4-r1', eapi=7) assert commit() == 'cat/pkg: update EAPI 6 -> 7' + # single rename with no revisions + git_repo.move( + pjoin(git_repo.path, 'cat/pkg/pkg-4.ebuild'), + pjoin(git_repo.path, 'cat/pkg/pkg-5.ebuild'), + commit=False + ) + assert commit() == 'cat/pkg: add 5, drop 4' + # large number of additions in a single commit for v in range(10000, 10010): repo.create_ebuild(f'cat/pkg-{v}') |