Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833871 (None) - dev-python/mkdocs-git-revision-date-localized-plugin: test fail on RISC-V
Summary: dev-python/mkdocs-git-revision-date-localized-plugin: test fail on RISC-V
Status: RESOLVED DUPLICATE of bug 833869
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal
Assignee: Nowa Ammerlaan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-22 07:41 UTC by Yixun Lan
Modified: 2022-02-22 08:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,3.92 KB, application/x-xz)
2022-02-22 07:43 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2022-02-22 07:41:51 UTC
====================================================== FAILURES =======================================================
______ test_type_unknown[i18n/mkdocs_wrong_order.yml-should be defined after the i18n plugin in your mkdocs.yml] ______

mkdocs_file = 'i18n/mkdocs_wrong_order.yml', error = 'should be defined after the i18n plugin in your mkdocs.yml'
tmp_path = PosixPath('/var/tmp/portage/dev-python/mkdocs-git-revision-date-localized-plugin-1.0.0/temp/pytest-of-portage/pytest-0/test_type_unknown_i18n_mkdocs_0')

    @pytest.mark.parametrize("mkdocs_file, error", INVALID_MKDOCS_FILES)
    def test_type_unknown(mkdocs_file, error, tmp_path):
        """
        Make sure invalid mkdocs.yml specification raise the correct errors.
        """
        testproject_path = setup_clean_mkdocs_folder(
            mkdocs_yml_path=f"tests/fixtures/{ mkdocs_file }", # mkdocs_file, # tmp_path, ,
            output_path=tmp_path
        )
        # Setup git commit history
        assert not os.path.exists(str(testproject_path / ".git"))
        testproject_path = str(testproject_path)
    
        repo = git.Repo.init(testproject_path, bare=False)
        author = "Test Person <testtest@gmail.com>"
    
        with working_directory(testproject_path):
            # page_with_tags contains tags we replace and test
            repo.git.add(".")
            repo.git.commit(message="add all", author=author, date="1500854705") # Mon Jul 24 2017 00:05:05 GMT+0000
    
        result = build_docs_setup(testproject_path)
        assert result.exit_code == 1
    
>       assert error in result.stdout or error in str(result.exc_info[0])
E       assert ('should be defined after the i18n plugin in your mkdocs.yml' in '\x1b[31mERROR    -  \x1b[0mConfig value: \'plugins\'. Error: The "i18n" plugin is not installed\nAborted with 1 Configuration Errors!\n' or 'should be defined after the i18n plugin in your mkdocs.yml' in "<class 'SystemExit'>")
E        +  where '\x1b[31mERROR    -  \x1b[0mConfig value: \'plugins\'. Error: The "i18n" plugin is not installed\nAborted with 1 Configuration Errors!\n' = <Result SystemExit(1)>.stdout
E        +  and   "<class 'SystemExit'>" = str(<class 'SystemExit'>)
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-22 07:43:27 UTC
it looks like the same of 833869
Comment 2 Yixun Lan archtester gentoo-dev 2022-02-22 07:43:33 UTC
Created attachment 765601 [details]
build.log.xz

build.log.xz
Comment 3 Yixun Lan archtester gentoo-dev 2022-02-22 07:45:45 UTC

*** This bug has been marked as a duplicate of bug 833869 ***
Comment 4 Larry the Git Cow gentoo-dev 2022-02-22 08:17:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd2370416251362da194a96482d912f2ff3ddca3

commit dd2370416251362da194a96482d912f2ff3ddca3
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2022-02-22 08:16:58 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2022-02-22 08:17:10 +0000

    dev-python/mkdocs-git-revision-date-localized-plugin: add missing test dep
    
    mkdocs-i18n is not only a doc gen dep, but also a test dep
    
    Closes: https://bugs.gentoo.org/833869
    Bug: https://bugs.gentoo.org/833871
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 .../mkdocs-git-revision-date-localized-plugin-1.0.0.ebuild               | 1 +
 1 file changed, 1 insertion(+)