@@ -395,7 +395,7 @@ def _setup(self, tmp_path, tool, make_repo, make_git_repo):
395395 self .parent_repo = make_repo (self .parent_git_repo .path , repo_id = "gentoo" , arches = ["amd64" ])
396396 self .parent_git_repo .add_all ("initial commit" )
397397 # create a stub pkg and commit it
398- self .parent_repo .create_ebuild ("cat/pkg-0" )
398+ self .parent_repo .create_ebuild ("cat/pkg-0" , eapi = "7" )
399399 self .parent_git_repo .add_all ("cat/pkg-0" )
400400
401401 # initialize child repo
@@ -694,6 +694,16 @@ def test_python_pep517_change(self):
694694 expected = git_mod .PythonPEP517WithoutRevbump (pkg = CPV ("newcat/newpkg-1" ))
695695 assert r == expected
696696
697+ def test_eapi_change (self ):
698+ # bump eapi
699+ self .child_repo .create_ebuild ("cat/pkg-0" , eapi = "8" )
700+ self .child_git_repo .add_all ("cat/pkg-0" )
701+ # pull changes to child repo
702+ self .init_check ()
703+ r = self .assertReport (self .check , self .source )
704+ expected = git_mod .EAPIChangeWithoutRevbump (pkg = CPV ("cat/pkg-0" ))
705+ assert r == expected
706+
697707 def test_src_uri_change (self ):
698708 distfile = [
699709 "DIST" ,
@@ -721,8 +731,8 @@ def test_src_uri_change(self):
721731 assert r == git_mod .SuspiciousSrcUriChange (old_url , new_url , distfile [1 ], pkg = CP ("cat/pkg" ))
722732 # revert change and check for no report with same mirror url
723733 self .child_git_repo .run (["git" , "reset" , "--hard" , "origin/main" ])
724- self .child_repo .create_ebuild ("cat/pkg-1" , src_uri = old_url , eapi = "8 " )
725- self .child_git_repo .add_all ("cat/pkg: bump EAPI " , signoff = True )
734+ self .child_repo .create_ebuild ("cat/pkg-1" , src_uri = old_url , homepage = "https://gentoo.org " )
735+ self .child_git_repo .add_all ("cat/pkg: update HOMEPAGE " , signoff = True )
726736 self .init_check ()
727737 self .assertNoReport (self .check , self .source )
728738
0 commit comments