Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec'], chrootPath='/var/lib/mock/openeuler-23.03-x86_64-1690771892.022945/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rpkg-1.65-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec'], chrootPath='/var/lib/mock/openeuler-23.03-x86_64-1690771892.022945/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rpkg-1.65-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec'], chrootPath='/var/lib/mock/openeuler-23.03-x86_64-1690771892.022945/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.k7cwiu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rpkg-1.65 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rpkg-1.65.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd rpkg-1.65 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/remove-koji-and-rpm-py-installer-from-requires.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Do-not-use-pytest-related-dependencies-temporarily.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Remove-pytest-coverage-execution.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-fedpkg-local-does-not-show-rpmbuild-output.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0005-Fixes-for-exploded-SRPM-layouts.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0006-mockbuild-escape-rpm-command-under-mock.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i -n '/extras_require/,/}/!p' setup.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.kG5hLs + umask 022 + cd /builddir/build/BUILD + cd rpkg-1.65 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/pyrpkg copying pyrpkg/cli.py -> build/lib/pyrpkg copying pyrpkg/sources.py -> build/lib/pyrpkg copying pyrpkg/spec.py -> build/lib/pyrpkg copying pyrpkg/utils.py -> build/lib/pyrpkg copying pyrpkg/lookaside.py -> build/lib/pyrpkg copying pyrpkg/__init__.py -> build/lib/pyrpkg copying pyrpkg/man_gen.py -> build/lib/pyrpkg copying pyrpkg/errors.py -> build/lib/pyrpkg copying pyrpkg/completers.py -> build/lib/pyrpkg copying pyrpkg/gitignore.py -> build/lib/pyrpkg creating build/lib/pyrpkg/layout copying pyrpkg/layout/__init__.py -> build/lib/pyrpkg/layout copying pyrpkg/layout/base.py -> build/lib/pyrpkg/layout copying pyrpkg/layout/layouts.py -> build/lib/pyrpkg/layout + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ZX0QH5 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64 ++ dirname /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64 + cd rpkg-1.65 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64 running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr creating /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib creating /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10 creating /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages creating /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/cli.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/sources.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/spec.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/utils.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg creating /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/layout copying build/lib/pyrpkg/layout/__init__.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/layout copying build/lib/pyrpkg/layout/base.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/layout copying build/lib/pyrpkg/layout/layouts.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/layout copying build/lib/pyrpkg/lookaside.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/__init__.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/man_gen.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/errors.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/completers.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg copying build/lib/pyrpkg/gitignore.py -> /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/cli.py to cli.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/sources.py to sources.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/spec.py to spec.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/utils.py to utils.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/layout/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/layout/base.py to base.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/layout/layouts.py to layouts.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py to lookaside.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/man_gen.py to man_gen.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/errors.py to errors.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/completers.py to completers.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/gitignore.py to gitignore.cpython-310.pyc writing byte-compilation script '/tmp/tmpxiudmpr5.py' /usr/bin/python3 /tmp/tmpxiudmpr5.py removing /tmp/tmpxiudmpr5.py running install_egg_info running egg_info writing rpkg.egg-info/PKG-INFO writing dependency_links to rpkg.egg-info/dependency_links.txt writing requirements to rpkg.egg-info/requires.txt writing top-level names to rpkg.egg-info/top_level.txt reading manifest file 'rpkg.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files found matching '.gitignore' no previously-included directories found matching 'doc/build' no previously-included directories found matching 'doc/source/commands/' no previously-included directories found matching 'doc/source/_static/' warning: no previously-included files found matching 'doc/source/cli.rst' warning: no previously-included files found matching 'doc/source/man_pages.json' adding license file 'COPYING' adding license file 'COPYING-koji' writing manifest file 'rpkg.egg-info/SOURCES.txt' Copying rpkg.egg-info to /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/rpkg-1.65-py3.10.egg-info running install_scripts + /usr/bin/install -d /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/etc/rpkg + example_cli_dir=/builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli + /usr/bin/install -d /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli + /usr/bin/install -d /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli/usr/bin + /usr/bin/install -d /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli/etc/bash_completion.d + /usr/bin/install -d /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli/etc/rpkg + /usr/bin/install -p -m 0644 bin/rpkg /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli/usr/bin + /usr/bin/install -p -m 0644 etc/bash_completion.d/rpkg.bash /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli/etc/bash_completion.d + /usr/bin/install -p -m 0644 etc/rpkg/rpkg.conf /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/share/rpkg/examples/cli/etc/rpkg + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 1.65-1 --unique-debug-suffix -1.65-1.x86_64 --unique-debug-src-base rpkg-1.65-1.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/rpkg-1.65 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10 using /usr/bin/python3.10 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.bv3slB + umask 022 + cd /builddir/build/BUILD + cd rpkg-1.65 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + PATH=/builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib64/python3.10/site-packages:/builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.10.9, pytest-7.0.1, pluggy-0.13.1 rootdir: /builddir/build/BUILD/rpkg-1.65, configfile: setup.cfg, testpaths: tests collected 393 items tests/test_cli.py ........................................FF............ [ 13%] ........................................................................ [ 32%] .............................. [ 39%] tests/test_commands.py FFF.....................FF....................... [ 52%] ....................... [ 58%] tests/test_flatpak_build.py ............ [ 61%] tests/test_gitgnore.py ....... [ 62%] tests/test_layout_distgit.py ..... [ 64%] tests/test_layout_distgit_resultsdir.py ..... [ 65%] tests/test_layout_incomplete.py ... [ 66%] tests/test_layout_retired.py ..... [ 67%] tests/test_layout_srpm.py .... [ 68%] tests/test_lookaside.py ......................... [ 74%] tests/test_module_build.py ... [ 75%] tests/test_retire.py ........ [ 77%] tests/test_side_tag.py ....... [ 79%] tests/test_sources.py ......................... [ 85%] tests/test_spec.py .. [ 86%] tests/test_utils.py ................ [ 90%] tests/commands/test_add_tag.py ...... [ 91%] tests/commands/test_check_repo.py ..... [ 93%] tests/commands/test_clone.py ............ [ 96%] tests/commands/test_delete_tag.py .. [ 96%] tests/commands/test_list_tag.py ...... [ 98%] tests/commands/test_package_name.py . [ 98%] tests/commands/test_patch.py ... [ 99%] tests/commands/test_push.py ... [100%] =================================== FAILURES =================================== ____________________________ TestVerrel.test_verrel ____________________________ self = @patch('sys.stdout', new=StringIO()) def test_verrel(self): cli_cmd = ['rpkg', '--path', self.cloned_repo_path, '--release', 'rhel-6', 'verrel'] with patch('sys.argv', new=cli_cmd): cli = self.new_cli() cli.verrel() repo_name = os.path.basename(self.repo_path) output = sys.stdout.getvalue().strip() > self.assertEqual('{0}-1.2-2.el6'.format(repo_name), output) E AssertionError: 'rpkg-commands-tests-qmsillws-1.2-2.el6' != 'rpkg-commands-tests-qmsillws-1.2-2.el6.el6' E - rpkg-commands-tests-qmsillws-1.2-2.el6 E + rpkg-commands-tests-qmsillws-1.2-2.el6.el6 E ? ++++ tests/test_cli.py:995: AssertionError ________________ TestVerrel.test_verrel_get_repo_name_from_spec ________________ self = @patch('sys.stdout', new=StringIO()) def test_verrel_get_repo_name_from_spec(self): cli_cmd = ['rpkg', '--path', self.repo_path, '--release', 'rhel-6', 'verrel'] with patch('sys.argv', new=cli_cmd): cli = self.new_cli() cli.verrel() output = sys.stdout.getvalue().strip() > self.assertEqual('docpkg-1.2-2.el6', output) E AssertionError: 'docpkg-1.2-2.el6' != 'docpkg-1.2-2.el6.el6' E - docpkg-1.2-2.el6 E + docpkg-1.2-2.el6.el6 E ? ++++ tests/test_cli.py:983: AssertionError ____________________ LoadNameVerRelTest.test_load_from_spec ____________________ self = def test_load_from_spec(self): """Ensure name, version, release can be loaded from a valid SPEC""" self.cmd.load_nameverrel() self.assertEqual('docpkg', self.cmd._package_name_spec) self.assertEqual('0', self.cmd._epoch) self.assertEqual('1.2', self.cmd._ver) > self.assertEqual('2.el6', self.cmd._rel) E AssertionError: '2.el6' != '2.el6.el6' E - 2.el6 E + 2.el6.el6 E ? ++++ tests/test_commands.py:103: AssertionError _________ LoadNameVerRelTest.test_load_spec_where_path_contains_space __________ self = def test_load_spec_where_path_contains_space(self): """Ensure load_nameverrel works with a repo whose path contains space This test aims to test the space appearing in path does not break rpm command execution. For this test purpose, firstly, original repo has to be cloned to a new place which has a name containing arbitrary spaces. """ cloned_repo_dir = os.path.join(self.tempdir, 'rpkg test cloned repo') if os.path.exists(cloned_repo_dir): shutil.rmtree(cloned_repo_dir) cloned_repo = self.cmd.repo.clone(cloned_repo_dir) # Switching to branch eng-rhel-6 explicitly is required by running this # on RHEL6/7 because an old version of git is available in the # repo. # The failure reason is, old version of git makes the master as the # active branch in cloned repository, whatever the current active # branch is in the remote repository. # As of fixing this, I ran test on Fedora 23 with git 2.5.5, and test # fails on RHEL7 with git 1.8.3.1 cloned_repo.git.checkout('eng-rhel-6') cmd = self.make_commands(path=cloned_repo_dir) cmd.load_nameverrel() self.assertEqual('docpkg', cmd._package_name_spec) self.assertEqual('0', cmd._epoch) self.assertEqual('1.2', cmd._ver) > self.assertEqual('2.el6', cmd._rel) E AssertionError: '2.el6' != '2.el6.el6' E - 2.el6 E + 2.el6.el6 E ? ++++ tests/test_commands.py:135: AssertionError ____________ LoadNameVerRelTest.test_load_when_echo_text_from_spec _____________ self = def test_load_when_echo_text_from_spec(self): import utils self.write_file(os.path.join(self.cloned_repo_path, self.spec_file), content=utils.spec_file_echo_text) self.cmd.load_nameverrel() self.assertEqual('docpkg', self.cmd._package_name_spec) self.assertEqual('0', self.cmd._epoch) self.assertEqual('1.2', self.cmd._ver) > self.assertEqual('2.el6', self.cmd._rel) E AssertionError: '2.el6' != '2.el6.el6' E - 2.el6 E + 2.el6.el6 E ? ++++ tests/test_commands.py:164: AssertionError ___________________________ TestProperties.test_nvr ____________________________ self = def test_nvr(self): cmd = self.make_commands(dist='eng-rhel-6') repo_name = os.path.basename(self.repo_path) > self.assertEqual('{0}-1.2-2.el6'.format(repo_name), cmd.nvr) E AssertionError: 'rpkg-commands-tests-0fwxg95e-1.2-2.el6' != 'rpkg-commands-tests-0fwxg95e-1.2-2.el6.el6' E - rpkg-commands-tests-0fwxg95e-1.2-2.el6 E + rpkg-commands-tests-0fwxg95e-1.2-2.el6.el6 E ? ++++ tests/test_commands.py:462: AssertionError __________ TestProperties.test_nvr_cannot_get_repo_name_from_push_url __________ self = def test_nvr_cannot_get_repo_name_from_push_url(self): cmd = self.make_commands(path=self.repo_path, dist='eng-rhel-6') > self.assertEqual('docpkg-1.2-2.el6', cmd.nvr) E AssertionError: 'docpkg-1.2-2.el6' != 'docpkg-1.2-2.el6.el6' E - docpkg-1.2-2.el6 E + docpkg-1.2-2.el6.el6 E ? ++++ tests/test_commands.py:466: AssertionError =============================== warnings summary =============================== tests/test_flatpak_build.py::FlatpakBuildCase::test_find_target /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/__init__.py:1009: DeprecationWarning: Modulemd.ModuleStream.read_string is deprecated module_stream = Modulemd.ModuleStream.read_string(mmd_str, strict=False) tests/test_flatpak_build.py::FlatpakBuildCase::test_find_target /builddir/build/BUILDROOT/rpkg-1.65-1.x86_64/usr/lib/python3.10/site-packages/pyrpkg/__init__.py:1012: DeprecationWarning: Modulemd.ModuleStream.upgrade is deprecated module_stream.upgrade(2) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_cli.py::TestVerrel::test_verrel - AssertionError: 'rpkg-com... FAILED tests/test_cli.py::TestVerrel::test_verrel_get_repo_name_from_spec - A... FAILED tests/test_commands.py::LoadNameVerRelTest::test_load_from_spec - Asse... FAILED tests/test_commands.py::LoadNameVerRelTest::test_load_spec_where_path_contains_space FAILED tests/test_commands.py::LoadNameVerRelTest::test_load_when_echo_text_from_spec FAILED tests/test_commands.py::TestProperties::test_nvr - AssertionError: 'rp... FAILED tests/test_commands.py::TestProperties::test_nvr_cannot_get_repo_name_from_push_url ================== 7 failed, 386 passed, 2 warnings in 10.84s ================== error: Bad exit status from /var/tmp/rpm-tmp.bv3slB (%check) Bad exit status from /var/tmp/rpm-tmp.bv3slB (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rpkg.spec