def METHOD_NAME(self, tool):
    with pytest.raises(SystemExit) as excinfo:
        tool.parse_args(["scan", "--repo", self.child_repo.location, "--commits"])
    assert excinfo.value.code == 0
    # parent repo has new commits
    self.parent_repo.create_ebuild("cat/pkg-1")
    self.parent_git_repo.add_all("cat/pkg-1")
    self.child_git_repo.run(["git", "pull", "origin", "main"])
    with pytest.raises(SystemExit) as excinfo:
        tool.parse_args(["scan", "--repo", self.child_repo.location, "--commits"])
    assert excinfo.value.code == 0