Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 726454 Details for
Bug 803827
app-admin/yadm-2.4.0 fails tests: - E assert hint: Using h -m <name>\n ==
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
app-admin:yadm-2.4.0:20210724-124028.log
app-admin:yadm-2.4.0:20210724-124028.log (text/plain), 20.76 KB, created by
Toralf Förster
on 2021-07-24 12:48:01 UTC
(
hide
)
Description:
app-admin:yadm-2.4.0:20210724-124028.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2021-07-24 12:48:01 UTC
Size:
20.76 KB
patch
obsolete
> * Package: app-admin/yadm-2.4.0 > * Repository: gentoo > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox > * Using python3.9 to build >>>> Unpacking source... >>>> Unpacking yadm-2.4.0.tar.gz to /var/tmp/portage/app-admin/yadm-2.4.0/work >>>> Source unpacked in /var/tmp/portage/app-admin/yadm-2.4.0/work >>>> Preparing source in /var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0 ... >make -j3 yadm.md >make: 'yadm.md' is up to date. >>>> Source compiled. >>>> Test phase: app-admin/yadm-2.4.0 >removed 'test/test_encryption.py' >removed 'test/test_alt.py' >removed 'test/test_compat_jinja.py' >removed 'test/test_unit_template_j2.py' >removed 'test/test_syntax.py' >removed 'test/test_compat_alt.py' >============================= test session starts ============================== >platform linux -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 >cachedir: /tmp >tempdir: /var/tmp/portage/app-admin/yadm-2.4.0/temp/yadm-2.4.0 >rootdir: /var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0, configfile: pytest.ini >plugins: case-1.5.3, tempdir-2019.10.12, django-4.4.0, anyio-3.2.1, trio-0.7.0, subtests-0.5.0, httpx-0.12.0, hypothesis-6.14.3, localserver-0.5.0, pkgcore-0.12.1, shutil-1.7.0, flake8-1.0.7, betamax-0.8.1, pyfakefs-4.5.0, verbose-parametrize-1.7.0, snapshottest-0.5.1, freezegun-0.4.2, rerunfailures-10.1, localftpserver-1.1.2, env-0.6.2, flakes-4.0.2, cov-2.12.1, timeout-1.4.2, datadir-1.3.1, regressions-2.2.0, mock-3.6.1, Faker-8.10.2 >collected 308 items > >test/test_alt_copy.py .......... [ 3%] >test/test_assert_private_dirs.py .... [ 4%] >test/test_bootstrap.py ... [ 5%] >test/test_clean.py . [ 5%] >test/test_clone.py ................... [ 12%] >test/test_config.py ....... [ 14%] >test/test_enter.py ............. [ 18%] >test/test_git.py . [ 18%] >test/test_git_crypt.py ... [ 19%] >test/test_help.py .. [ 20%] >test/test_hooks.py ......... [ 23%] >test/test_init.py FF.FF [ 25%] >test/test_introspect.py ...... [ 26%] >test/test_list.py ... [ 27%] >test/test_perms.py ............. [ 32%] >test/test_unit_bootstrap_available.py ... [ 33%] >test/test_unit_choose_template_cmd.py ...................... [ 40%] >test/test_unit_configure_paths.py ....... [ 42%] >test/test_unit_exclude_encrypted.py ............ [ 46%] >test/test_unit_is_valid_branch_name.py ........... [ 50%] >test/test_unit_issue_legacy_path_warning.py ................ [ 55%] >test/test_unit_parse_encrypt.py ..... [ 56%] >test/test_unit_private_dirs.py .... [ 58%] >test/test_unit_query_distro.py .... [ 59%] >test/test_unit_record_score.py ...... [ 61%] >test/test_unit_record_template.py .. [ 62%] >test/test_unit_relative_path.py .......... [ 65%] >test/test_unit_remove_stale_links.py .... [ 66%] >test/test_unit_report_invalid_alts.py .... [ 67%] >test/test_unit_score_file.py ........................................... [ 81%] >......................... [ 89%] >test/test_unit_set_local_alt_values.py ...... [ 91%] >test/test_unit_set_os.py .... [ 93%] >test/test_unit_set_yadm_dir.py .... [ 94%] >test/test_unit_template_default.py .. [ 95%] >test/test_unit_upgrade.py ....... [ 97%] >test/test_unit_x_program.py ...... [ 99%] >test/test_version.py .. [100%] > >=================================== FAILURES =================================== >______________________________ test_init[simple] _______________________________ > >runner = <class 'conftest.Runner'> >yadm_y = <function yadm_y.<locals>.command_list at 0x7fee8349b5e0> >paths = Paths(pgm='/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', root=local('/var/tmp/portage/app-admin/yadm-2....pt=local('/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init_simple_0/root/yadm/encrypt')) >repo_config = <function repo_config.<locals>.query_func at 0x7fee8349b550> >alt_work = False, repo_present = False, force = False > > @pytest.mark.parametrize( > 'alt_work, repo_present, force', [ > (False, False, False), > (True, False, False), > (False, True, False), > (False, True, True), > (True, True, True), > ], ids=[ > 'simple', > '-w', > 'existing repo', > '-f', > '-w & -f', > ]) > @pytest.mark.usefixtures('ds1_work_copy') > def test_init( > runner, yadm_y, paths, repo_config, alt_work, repo_present, force): > """Test init > > Repos should have attribs: > - 0600 permissions > - not bare > - worktree = $HOME > - showUntrackedFiles = no > - yadm.managed = true > """ > > # these tests will assume this for $HOME > home = str(paths.root.mkdir('HOME')) > > # ds1_work_copy comes WITH an empty repo dir present. > old_repo = paths.repo.join('old_repo') > if repo_present: > # Let's put some data in it, so we can confirm that data is gone when > # forced to be overwritten. > old_repo.write('old repo data') > assert old_repo.isfile() > else: > paths.repo.remove() > > # command args > args = ['init'] > if alt_work: > args.extend(['-w', paths.work]) > if force: > args.append('-f') > > # run init > run = runner(yadm_y(*args), env={'HOME': home}) >> assert run.err == '' >E assert "hint: Using ...h -m <name>\n" == '' >E + hint: Using 'master' as the name for the initial branch. This default branch name >E + hint: is subject to change. To configure the initial branch name to use in all >E + hint: of your new repositories, which will suppress this warning, call: >E + hint: >E + hint: git config --global init.defaultBranch <name> >E + hint: >E + hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and... >E >E ...Full output truncated (4 lines hidden), use '-vv' to show > >test/test_init.py:55: AssertionError >----------------------------- Captured stdout call ----------------------------- >Runner(['/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', '-Y', '/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init_simple_0/root/yadm', 'init']) > RUN: code:0 > RUN: stdout: >Initialized empty shared Git repository in /var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init_simple_0/root/yadm/repo.git/ > > RUN: stderr: >hint: Using 'master' as the name for the initial branch. This default branch name >hint: is subject to change. To configure the initial branch name to use in all >hint: of your new repositories, which will suppress this warning, call: >hint: >hint: git config --global init.defaultBranch <name> >hint: >hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and >hint: 'development'. The just-created branch can be renamed via this command: >hint: >hint: git branch -m <name> > >________________________________ test_init[-w] _________________________________ > >runner = <class 'conftest.Runner'> >yadm_y = <function yadm_y.<locals>.command_list at 0x7fee835f41f0> >paths = Paths(pgm='/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', root=local('/var/tmp/portage/app-admin/yadm-2....ncrypt=local('/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w_0/root/yadm/encrypt')) >repo_config = <function repo_config.<locals>.query_func at 0x7fee835f4280> >alt_work = True, repo_present = False, force = False > > @pytest.mark.parametrize( > 'alt_work, repo_present, force', [ > (False, False, False), > (True, False, False), > (False, True, False), > (False, True, True), > (True, True, True), > ], ids=[ > 'simple', > '-w', > 'existing repo', > '-f', > '-w & -f', > ]) > @pytest.mark.usefixtures('ds1_work_copy') > def test_init( > runner, yadm_y, paths, repo_config, alt_work, repo_present, force): > """Test init > > Repos should have attribs: > - 0600 permissions > - not bare > - worktree = $HOME > - showUntrackedFiles = no > - yadm.managed = true > """ > > # these tests will assume this for $HOME > home = str(paths.root.mkdir('HOME')) > > # ds1_work_copy comes WITH an empty repo dir present. > old_repo = paths.repo.join('old_repo') > if repo_present: > # Let's put some data in it, so we can confirm that data is gone when > # forced to be overwritten. > old_repo.write('old repo data') > assert old_repo.isfile() > else: > paths.repo.remove() > > # command args > args = ['init'] > if alt_work: > args.extend(['-w', paths.work]) > if force: > args.append('-f') > > # run init > run = runner(yadm_y(*args), env={'HOME': home}) >> assert run.err == '' >E assert "hint: Using ...h -m <name>\n" == '' >E + hint: Using 'master' as the name for the initial branch. This default branch name >E + hint: is subject to change. To configure the initial branch name to use in all >E + hint: of your new repositories, which will suppress this warning, call: >E + hint: >E + hint: git config --global init.defaultBranch <name> >E + hint: >E + hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and... >E >E ...Full output truncated (4 lines hidden), use '-vv' to show > >test/test_init.py:55: AssertionError >----------------------------- Captured stdout call ----------------------------- >Runner(['/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', '-Y', '/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w_0/root/yadm', 'init', '-w', local('/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w_0/root/work')]) > RUN: code:0 > RUN: stdout: >Initialized empty shared Git repository in /var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w_0/root/yadm/repo.git/ > > RUN: stderr: >hint: Using 'master' as the name for the initial branch. This default branch name >hint: is subject to change. To configure the initial branch name to use in all >hint: of your new repositories, which will suppress this warning, call: >hint: >hint: git config --global init.defaultBranch <name> >hint: >hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and >hint: 'development'. The just-created branch can be renamed via this command: >hint: >hint: git branch -m <name> > >________________________________ test_init[-f] _________________________________ > >runner = <class 'conftest.Runner'> >yadm_y = <function yadm_y.<locals>.command_list at 0x7fee83596310> >paths = Paths(pgm='/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', root=local('/var/tmp/portage/app-admin/yadm-2....ncrypt=local('/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__f_0/root/yadm/encrypt')) >repo_config = <function repo_config.<locals>.query_func at 0x7fee835963a0> >alt_work = False, repo_present = True, force = True > > @pytest.mark.parametrize( > 'alt_work, repo_present, force', [ > (False, False, False), > (True, False, False), > (False, True, False), > (False, True, True), > (True, True, True), > ], ids=[ > 'simple', > '-w', > 'existing repo', > '-f', > '-w & -f', > ]) > @pytest.mark.usefixtures('ds1_work_copy') > def test_init( > runner, yadm_y, paths, repo_config, alt_work, repo_present, force): > """Test init > > Repos should have attribs: > - 0600 permissions > - not bare > - worktree = $HOME > - showUntrackedFiles = no > - yadm.managed = true > """ > > # these tests will assume this for $HOME > home = str(paths.root.mkdir('HOME')) > > # ds1_work_copy comes WITH an empty repo dir present. > old_repo = paths.repo.join('old_repo') > if repo_present: > # Let's put some data in it, so we can confirm that data is gone when > # forced to be overwritten. > old_repo.write('old repo data') > assert old_repo.isfile() > else: > paths.repo.remove() > > # command args > args = ['init'] > if alt_work: > args.extend(['-w', paths.work]) > if force: > args.append('-f') > > # run init > run = runner(yadm_y(*args), env={'HOME': home}) >> assert run.err == '' >E assert "hint: Using ...h -m <name>\n" == '' >E + hint: Using 'master' as the name for the initial branch. This default branch name >E + hint: is subject to change. To configure the initial branch name to use in all >E + hint: of your new repositories, which will suppress this warning, call: >E + hint: >E + hint: git config --global init.defaultBranch <name> >E + hint: >E + hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and... >E >E ...Full output truncated (4 lines hidden), use '-vv' to show > >test/test_init.py:55: AssertionError >----------------------------- Captured stdout call ----------------------------- >Runner(['/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', '-Y', '/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__f_0/root/yadm', 'init', '-f']) > RUN: code:0 > RUN: stdout: >Initialized empty shared Git repository in /var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__f_0/root/yadm/repo.git/ > > RUN: stderr: >hint: Using 'master' as the name for the initial branch. This default branch name >hint: is subject to change. To configure the initial branch name to use in all >hint: of your new repositories, which will suppress this warning, call: >hint: >hint: git config --global init.defaultBranch <name> >hint: >hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and >hint: 'development'. The just-created branch can be renamed via this command: >hint: >hint: git branch -m <name> > >______________________________ test_init[-w & -f] ______________________________ > >runner = <class 'conftest.Runner'> >yadm_y = <function yadm_y.<locals>.command_list at 0x7fee835969d0> >paths = Paths(pgm='/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', root=local('/var/tmp/portage/app-admin/yadm-2....t=local('/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w____f_0/root/yadm/encrypt')) >repo_config = <function repo_config.<locals>.query_func at 0x7fee83596a60> >alt_work = True, repo_present = True, force = True > > @pytest.mark.parametrize( > 'alt_work, repo_present, force', [ > (False, False, False), > (True, False, False), > (False, True, False), > (False, True, True), > (True, True, True), > ], ids=[ > 'simple', > '-w', > 'existing repo', > '-f', > '-w & -f', > ]) > @pytest.mark.usefixtures('ds1_work_copy') > def test_init( > runner, yadm_y, paths, repo_config, alt_work, repo_present, force): > """Test init > > Repos should have attribs: > - 0600 permissions > - not bare > - worktree = $HOME > - showUntrackedFiles = no > - yadm.managed = true > """ > > # these tests will assume this for $HOME > home = str(paths.root.mkdir('HOME')) > > # ds1_work_copy comes WITH an empty repo dir present. > old_repo = paths.repo.join('old_repo') > if repo_present: > # Let's put some data in it, so we can confirm that data is gone when > # forced to be overwritten. > old_repo.write('old repo data') > assert old_repo.isfile() > else: > paths.repo.remove() > > # command args > args = ['init'] > if alt_work: > args.extend(['-w', paths.work]) > if force: > args.append('-f') > > # run init > run = runner(yadm_y(*args), env={'HOME': home}) >> assert run.err == '' >E assert "hint: Using ...h -m <name>\n" == '' >E + hint: Using 'master' as the name for the initial branch. This default branch name >E + hint: is subject to change. To configure the initial branch name to use in all >E + hint: of your new repositories, which will suppress this warning, call: >E + hint: >E + hint: git config --global init.defaultBranch <name> >E + hint: >E + hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and... >E >E ...Full output truncated (4 lines hidden), use '-vv' to show > >test/test_init.py:55: AssertionError >----------------------------- Captured stdout call ----------------------------- >Runner(['/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0/yadm', '-Y', '/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w____f_0/root/yadm', 'init', '-w', local('/var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w____f_0/root/work'), '-f']) > RUN: code:0 > RUN: stdout: >Initialized empty shared Git repository in /var/tmp/portage/app-admin/yadm-2.4.0/temp/pytest-of-portage/pytest-0/test_init__w____f_0/root/yadm/repo.git/ > > RUN: stderr: >hint: Using 'master' as the name for the initial branch. This default branch name >hint: is subject to change. To configure the initial branch name to use in all >hint: of your new repositories, which will suppress this warning, call: >hint: >hint: git config --global init.defaultBranch <name> >hint: >hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and >hint: 'development'. The just-created branch can be renamed via this command: >hint: >hint: git branch -m <name> > >=========================== short test summary info ============================ >FAILED test/test_init.py::test_init[simple] - assert "hint: Using ...h -m <na... >FAILED test/test_init.py::test_init[-w] - assert "hint: Using ...h -m <name>\... >FAILED test/test_init.py::test_init[-f] - assert "hint: Using ...h -m <name>\... >FAILED test/test_init.py::test_init[-w & -f] - assert "hint: Using ...h -m <n... >======================== 4 failed, 304 passed in 21.75s ======================== > * ERROR: app-admin/yadm-2.4.0::gentoo failed (test phase): > * Testsuite failed under python3.9 > * > * Call stack: > * ebuild.sh, line 127: Called src_test > * environment, line 2149: Called die > * The specific snippet of code: > * pytest || die "Testsuite failed under ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=app-admin/yadm-2.4.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=app-admin/yadm-2.4.0::gentoo'`. > * The complete build log is located at '/var/log/portage/app-admin:yadm-2.4.0:20210724-124028.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-admin/yadm-2.4.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/app-admin/yadm-2.4.0/temp/environment'. > * Working directory: '/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0' > * S: '/var/tmp/portage/app-admin/yadm-2.4.0/work/yadm-2.4.0' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 803827
:
726451
| 726454 |
726457
|
726460
|
726463
|
726466