Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-156416-9986/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=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.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: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-ftputil-5.1.0-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-156416-9986/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=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.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: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tXgco0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ftputil-5.1.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ftputil-5.1.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ftputil-5.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.VE2PxQ + umask 022 + cd /builddir/build/BUILD + cd ftputil-5.1.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools >= 40.8 from default build backend Requirement not satisfied: setuptools >= 40.8 Handling wheel from default build backend Requirement not satisfied: wheel Exiting dependency generation pass: build backend + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-ftputil-5.1.0-1.ocs23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-156416-9986/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=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.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: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.j6cmf5 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ftputil-5.1.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ftputil-5.1.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ftputil-5.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.F6Rmwj + umask 022 + cd /builddir/build/BUILD + cd ftputil-5.1.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 68.0.0) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.41.2) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-ftputil-5.1.0-1.ocs23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-156416-9986/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=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.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: noarch Building for target noarch Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.cRtbeq + umask 022 + cd /builddir/build/BUILD + cd ftputil-5.1.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv ftputil-5.1.0.dist-info/ removed 'ftputil-5.1.0.dist-info/METADATA' removed 'ftputil-5.1.0.dist-info/top_level.txt' removed 'ftputil-5.1.0.dist-info/LICENSE' removed directory 'ftputil-5.1.0.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 68.0.0) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.41.2) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pcO1UR + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ftputil-5.1.0 + mkdir -p /builddir/build/BUILD/ftputil-5.1.0/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + TMPDIR=/builddir/build/BUILD/ftputil-5.1.0/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/ftputil-5.1.0/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/ftputil-5.1.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: ftputil Building wheel for ftputil (pyproject.toml): started Running command Building wheel for ftputil (pyproject.toml) Building wheel for ftputil (pyproject.toml): finished with status 'done' Created wheel for ftputil: filename=ftputil-5.1.0-py3-none-any.whl size=50813 sha256=ebcd4dbd8ece4965a672e6c7b4ddefef808728dc46f01568acafa4f090e898c9 Stored in directory: /builddir/.cache/pip/wheels/42/c5/92/c15dcdb66e8aac0dac506fa0cb1262089ff5201df38dd4fb49 Successfully built ftputil + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Bgu0Jj + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch + cd ftputil-5.1.0 ++ ls /builddir/build/BUILD/ftputil-5.1.0/pyproject-wheeldir/ftputil-5.1.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=ftputil==5.1.0 + TMPDIR=/builddir/build/BUILD/ftputil-5.1.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/ftputil-5.1.0/pyproject-wheeldir ftputil==5.1.0 Using pip 23.3.1 from /usr/lib/python3.11/site-packages/pip (python 3.11) Looking in links: /builddir/build/BUILD/ftputil-5.1.0/pyproject-wheeldir Processing ./pyproject-wheeldir/ftputil-5.1.0-py3-none-any.whl Installing collected packages: ftputil Successfully installed ftputil-5.1.0 + '[' -d /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages ']' + site_dirs+=("/usr/lib/python3.11/site-packages") + '[' /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib64/python3.11/site-packages '!=' /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib64/python3.11/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.11/site-packages/ftputil-5.1.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages/ftputil-5.1.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/OpenCloudOS + /usr/bin/python3 -B /usr/lib/rpm/OpenCloudOS/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch --record /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages/ftputil-5.1.0.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record + rm -fv /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages/ftputil-5.1.0.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages/ftputil-5.1.0.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages/ftputil-5.1.0.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages/ftputil-5.1.0.dist-info/REQUESTED' + /usr/bin/python3 /usr/lib/rpm/OpenCloudOS/pyproject_save_files.py --output-files /builddir/build/BUILD/pyproject-files --output-modules /builddir/build/BUILD/pyproject-modules --buildroot /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch --sitelib /usr/lib/python3.11/site-packages --sitearch /usr/lib64/python3.11/site-packages --python-version 3.11 --pyproject-record /builddir/build/BUILD/pyproject-record --prefix /usr ftputil + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 5.1.0-1.ocs23 --unique-debug-suffix -5.1.0-1.ocs23.noarch --unique-debug-src-base python-ftputil-5.1.0-1.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/ftputil-5.1.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.b6ev5Z + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ftputil-5.1.0 + ignore=' --ignore=test/test_real_ftp.py' + k='not (TestPublicServers and test_servers)' + touch Makefile + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + PATH=/builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-ftputil-5.1.0-1.ocs23.noarch/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/ftputil-5.1.0/.pyproject-builddir' + /usr/bin/pytest --ignore=test/test_real_ftp.py -k 'not (TestPublicServers and test_servers)' -v ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/ftputil-5.1.0 collecting ... collected 150 items / 1 deselected / 149 selected test/test_error.py::TestFTPErrorArguments::test_bytestring_argument PASSED [ 0%] test/test_error.py::TestFTPErrorArguments::test_unicode_argument PASSED [ 1%] test/test_error.py::TestErrorConversion::test_ftplib_error_to_ftp_os_error PASSED [ 2%] test/test_error.py::TestErrorConversion::test_ftplib_error_to_ftp_io_error PASSED [ 2%] test/test_error.py::TestErrorConversion::test_error_message_reuse PASSED [ 3%] test/test_file.py::TestFileOperations::test_inaccessible_dir PASSED [ 4%] test/test_file.py::TestFileOperations::test_caching_of_children PASSED [ 4%] test/test_file.py::TestFileOperations::test_write_to_directory PASSED [ 5%] test/test_file.py::TestFileOperations::test_mode_not_given PASSED [ 6%] test/test_file.py::TestFileOperations::test_mode_is_none PASSED [ 6%] test/test_file.py::TestFileOperations::test_binary_read PASSED [ 7%] test/test_file.py::TestFileOperations::test_binary_write PASSED [ 8%] test/test_file.py::TestFileOperations::test_text_read PASSED [ 8%] test/test_file.py::TestFileOperations::test_text_write PASSED [ 9%] test/test_file.py::TestFileOperations::test_text_writelines PASSED [ 10%] test/test_file.py::TestFileOperations::test_binary_readline PASSED [ 10%] test/test_file.py::TestFileOperations::test_text_readline PASSED [ 11%] test/test_file.py::TestFileOperations::test_text_readlines PASSED [ 12%] test/test_file.py::TestFileOperations::test_binary_iterator PASSED [ 12%] test/test_file.py::TestFileOperations::test_text_iterator PASSED [ 13%] test/test_file.py::TestFileOperations::test_read_unknown_file PASSED [ 14%] test/test_file.py::TestAvailableChild::test_pwd_with_error_temp PASSED [ 14%] test/test_file.py::TestAvailableChild::test_pwd_with_error_reply PASSED [ 15%] test/test_file.py::TestAvailableChild::test_pwd_with_OSError PASSED [ 16%] test/test_file.py::TestAvailableChild::test_pwd_with_EOFError PASSED [ 16%] test/test_file_transfer.py::TestRemoteFile::test_time_shift_subtracted_only_once PASSED [ 17%] test/test_file_transfer.py::TestTimestampComparison::test_source_is_newer_than_target PASSED [ 18%] test/test_file_transfer.py::TestChunkwiseTransfer::test_chunkwise_transfer_without_remainder PASSED [ 18%] test/test_file_transfer.py::TestChunkwiseTransfer::test_chunkwise_transfer_with_remainder PASSED [ 19%] test/test_file_transfer.py::TestChunkwiseTransfer::test_chunkwise_transfer_with_exception PASSED [ 20%] test/test_host.py::TestDefaultSessionFactory::test_ftplib_FTP_subclass PASSED [ 20%] test/test_host.py::TestDefaultSessionFactory::test_extra_positional_arguments PASSED [ 21%] test/test_host.py::TestDefaultSessionFactory::test_extra_keyword_arguments PASSED [ 22%] test/test_host.py::TestDefaultSessionFactory::test_custom_encoding PASSED [ 22%] test/test_host.py::TestConstructor::test_open_and_close PASSED [ 23%] test/test_host.py::TestConstructor::test_invalid_login PASSED [ 24%] test/test_host.py::TestConstructor::test_pwd_normalization PASSED [ 24%] test/test_host.py::TestConstructor::test_missing_encoding_attribute PASSED [ 25%] test/test_host.py::TestKeepAlive::test_succeeding_keep_alive PASSED [ 26%] test/test_host.py::TestKeepAlive::test_failing_keep_alive PASSED [ 26%] test/test_host.py::TestSetParser::test_set_parser PASSED [ 27%] test/test_host.py::TestCommandNotImplementedError::test_command_not_implemented_error PASSED [ 28%] test/test_host.py::TestRecursiveListingForDotAsPath::test_plain_listing PASSED [ 28%] test/test_host.py::TestRecursiveListingForDotAsPath::test_empty_string_instead_of_dot_workaround PASSED [ 29%] test/test_host.py::TestTimeShift::test_rounded_time_shift PASSED [ 30%] test/test_host.py::TestTimeShift::test_assert_valid_time_shift PASSED [ 30%] test/test_host.py::TestTimeShift::test_synchronize_times PASSED [ 31%] test/test_host.py::TestTimeShift::test_synchronize_times_for_server_in_east PASSED [ 32%] test/test_host.py::TestUploadAndDownload::test_download PASSED [ 32%] test/test_host.py::TestUploadAndDownload::test_conditional_upload_without_upload PASSED [ 33%] test/test_host.py::TestUploadAndDownload::test_conditional_upload_with_upload PASSED [ 34%] test/test_host.py::TestUploadAndDownload::test_conditional_download_without_target PASSED [ 34%] test/test_host.py::TestUploadAndDownload::test_conditional_download_with_older_target PASSED [ 35%] test/test_host.py::TestUploadAndDownload::test_conditional_download_with_newer_target FAILED [ 36%] test/test_host.py::TestMakedirs::test_exist_ok_false PASSED [ 36%] test/test_host.py::TestMakedirs::test_exist_ok_true PASSED [ 37%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_upload PASSED [ 38%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_download PASSED [ 38%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_rename PASSED [ 39%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_listdir PASSED [ 40%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_chmod PASSED [ 40%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_chdir PASSED [ 41%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_mkdir PASSED [ 42%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_makedirs PASSED [ 42%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_rmdir PASSED [ 43%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_remove PASSED [ 44%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_rmtree PASSED [ 44%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_lstat PASSED [ 45%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_stat PASSED [ 46%] test/test_host.py::TestAcceptEitherUnicodeOrBytes::test_walk PASSED [ 46%] test/test_host.py::TestFailingPickling::test_failing_pickling PASSED [ 47%] test/test_path.py::TestPath::test_regular_isdir_isfile_islink PASSED [ 48%] test/test_path.py::TestPath::test_workaround_for_spaces PASSED [ 48%] test/test_path.py::TestPath::test_inaccessible_home_directory_and_whitespace_workaround PASSED [ 49%] test/test_path.py::TestPath::test_isdir_isfile_islink_with_dir_failure PASSED [ 50%] test/test_path.py::TestPath::test_isdir_isfile_with_infinite_link_chain PASSED [ 51%] test/test_path.py::TestPath::test_exists PASSED [ 51%] test/test_path.py::TestAcceptEitherBytesOrStr::test_methods_that_take_and_return_one_string PASSED [ 52%] test/test_path.py::TestAcceptEitherBytesOrStr::test_methods_that_take_a_string_and_return_a_bool PASSED [ 53%] test/test_path.py::TestAcceptEitherBytesOrStr::test_getmtime PASSED [ 53%] test/test_path.py::TestAcceptEitherBytesOrStr::test_getsize PASSED [ 54%] test/test_path.py::TestAcceptEitherBytesOrStr::test_walk PASSED [ 55%] test/test_path.py::TestAcceptEitherBytesOrStrFromPath::test_methods_that_take_and_return_one_string PASSED [ 55%] test/test_path.py::TestAcceptEitherBytesOrStrFromPath::test_methods_that_take_a_string_and_return_a_bool PASSED [ 56%] test/test_path.py::TestAcceptEitherBytesOrStrFromPath::test_getmtime PASSED [ 57%] test/test_path.py::TestAcceptEitherBytesOrStrFromPath::test_getsize PASSED [ 57%] test/test_path.py::TestAcceptEitherBytesOrStrFromPath::test_walk PASSED [ 58%] test/test_session.py::TestSessionFactory::test_defaults PASSED [ 59%] test/test_session.py::TestSessionFactory::test_different_port PASSED [ 59%] test/test_session.py::TestSessionFactory::test_use_passive_mode PASSED [ 60%] test/test_session.py::TestSessionFactory::test_encrypt_data_channel PASSED [ 61%] test/test_session.py::TestSessionFactory::test_encoding[None--utf-8-None] PASSED [ 61%] test/test_session.py::TestSessionFactory::test_encoding[None- UTF8\r\n-utf-8-None] PASSED [ 62%] test/test_session.py::TestSessionFactory::test_encoding[UTF-8--UTF-8-expected_session_calls_for_encoding_handling2] PASSED [ 63%] test/test_session.py::TestSessionFactory::test_encoding[UTF-8- UTF8\r\n-UTF-8-expected_session_calls_for_encoding_handling3] PASSED [ 63%] test/test_session.py::TestSessionFactory::test_encoding[latin1--latin1-expected_session_calls_for_encoding_handling4] PASSED [ 64%] test/test_session.py::TestSessionFactory::test_encoding[latin1- UTF8\r\n-latin1-expected_session_calls_for_encoding_handling5] PASSED [ 65%] test/test_session.py::TestSessionFactory::test_debug_level PASSED [ 65%] test/test_stat.py::TestParsers::test_valid_unix_lines PASSED [ 66%] test/test_stat.py::TestParsers::test_alternative_unix_format PASSED [ 67%] test/test_stat.py::TestParsers::test_pre_epoch_times_for_unix PASSED [ 67%] test/test_stat.py::TestParsers::test_invalid_unix_lines PASSED [ 68%] test/test_stat.py::TestParsers::test_valid_ms_lines_two_digit_year PASSED [ 69%] test/test_stat.py::TestParsers::test_valid_ms_lines_four_digit_year PASSED [ 69%] test/test_stat.py::TestParsers::test_invalid_ms_lines PASSED [ 70%] test/test_stat.py::TestParsers::test_time_shifts PASSED [ 71%] test/test_stat.py::TestLstatAndStat::test_repr PASSED [ 71%] test/test_stat.py::TestLstatAndStat::test_failing_lstat PASSED [ 72%] test/test_stat.py::TestLstatAndStat::test_lstat_for_root PASSED [ 73%] test/test_stat.py::TestLstatAndStat::test_lstat_one_unix_file PASSED [ 73%] test/test_stat.py::TestLstatAndStat::test_lstat_one_ms_file PASSED [ 74%] test/test_stat.py::TestLstatAndStat::test_lstat_one_unix_dir PASSED [ 75%] test/test_stat.py::TestLstatAndStat::test_lstat_one_ms_dir PASSED [ 75%] test/test_stat.py::TestLstatAndStat::test_lstat_via_stat_module PASSED [ 76%] test/test_stat.py::TestLstatAndStat::test_stat_following_link PASSED [ 77%] test/test_stat.py::TestLstatAndStat::test_parser_switching_with_permanent_error PASSED [ 77%] test/test_stat.py::TestLstatAndStat::test_parser_switching_default_to_unix PASSED [ 78%] test/test_stat.py::TestLstatAndStat::test_parser_switching_to_ms PASSED [ 79%] test/test_stat.py::TestLstatAndStat::test_parser_switching_regarding_empty_dir PASSED [ 79%] test/test_stat.py::TestListdir::test_failing_listdir PASSED [ 80%] test/test_stat.py::TestListdir::test_succeeding_listdir PASSED [ 81%] test/test_stat_cache.py::TestStatCache::test_get_set PASSED [ 81%] test/test_stat_cache.py::TestStatCache::test_invalidate PASSED [ 82%] test/test_stat_cache.py::TestStatCache::test_clear PASSED [ 83%] test/test_stat_cache.py::TestStatCache::test_contains PASSED [ 83%] test/test_stat_cache.py::TestStatCache::test_len PASSED [ 84%] test/test_stat_cache.py::TestStatCache::test_resize PASSED [ 85%] test/test_stat_cache.py::TestStatCache::test_max_age1 PASSED [ 85%] test/test_stat_cache.py::TestStatCache::test_max_age2 PASSED [ 86%] test/test_stat_cache.py::TestStatCache::test_disabled PASSED [ 87%] test/test_stat_cache.py::TestStatCache::test_cache_size_zero PASSED [ 87%] test/test_sync.py::TestLocalToLocal::test_sync_empty_dir PASSED [ 88%] test/test_sync.py::TestLocalToLocal::test_source_with_and_target_without_slash PASSED [ 89%] test/test_sync.py::TestUploadFromWindows::test_no_mixed_separators PASSED [ 89%] test/test_tool.py::TestSameStringTypeAs::test_to_bytes PASSED [ 90%] test/test_tool.py::TestSameStringTypeAs::test_to_str PASSED [ 91%] test/test_tool.py::TestSameStringTypeAs::test_both_bytes_type PASSED [ 91%] test/test_tool.py::TestSameStringTypeAs::test_both_str_type PASSED [ 92%] test/test_tool.py::TestAsStr::test_from_bytes PASSED [ 93%] test/test_tool.py::TestAsStr::test_from_str PASSED [ 93%] test/test_tool.py::TestAsStr::test_from_bytes_path PASSED [ 94%] test/test_tool.py::TestAsStr::test_from_str_path PASSED [ 95%] test/test_tool.py::TestAsStr::test_type_error PASSED [ 95%] test/test_with_statement.py::TestHostContextManager::test_normal_operation PASSED [ 96%] test/test_with_statement.py::TestHostContextManager::test_ftputil_exception PASSED [ 97%] test/test_with_statement.py::TestHostContextManager::test_client_code_exception PASSED [ 97%] test/test_with_statement.py::TestFileContextManager::test_normal_operation PASSED [ 98%] test/test_with_statement.py::TestFileContextManager::test_ftputil_exception PASSED [ 99%] test/test_with_statement.py::TestFileContextManager::test_client_code_exception PASSED [100%] =================================== FAILURES =================================== ______ TestUploadAndDownload.test_conditional_download_with_newer_target _______ self = tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_conditional_download_with2') def test_conditional_download_with_newer_target(self, tmp_path): """ Test conditional binary mode download with older source file. """ local_target = tmp_path / "test_target" # Make sure file exists for timestamp comparison. local_target.touch() data = binary_data() # Use date in the past, so the target file is newer and no download # happens. dir_result = test_base.dir_line( mode_string="-rw-r--r--", date_=datetime.date.today() - datetime.timedelta(days=1), name="newer", ) host_script = [ Call("__init__"), Call("pwd", result="/"), Call("cwd", args=("/",)), Call("cwd", args=("/",)), Call("dir", args=("",), result=dir_result), Call("cwd", args=("/",)), Call("close"), ] file_script = [ Call("__init__"), Call("pwd", result="/"), Call("cwd", args=("/",)), Call("voidcmd", args=("TYPE I",)), Call("transfercmd", args=("RETR newer", None), result=io.BytesIO(data)), Call("voidresp"), Call("close"), ] multisession_factory = scripted_session.factory(host_script, file_script) with test_base.ftp_host_factory(multisession_factory) as host: flag = host.download_if_newer("/newer", str(local_target)) > assert flag is False E assert True is False test/test_host.py:774: AssertionError ----------------------------- Captured stdout call ----------------------------- ScriptedSession 1 in `_next_script_call` ScriptedSession 1 next call: Call(method_name='__init__', result=None, args=None, kwargs=None) ScriptedSession 1 in `_next_script_call` ScriptedSession 1 next call: Call(method_name='pwd', result='/', args=None, kwargs=None) ScriptedSession 1 in `__getattr__` Call from session script: pwd | None | None Call from system under test: pwd | () | {} ScriptedSession 1 in `_next_script_call` ScriptedSession 1 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) ScriptedSession 1 in `__getattr__` Call from session script: cwd | ('/',) | None Call from system under test: cwd | ('/',) | {} ScriptedSession 1 in `_next_script_call` ScriptedSession 1 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) ScriptedSession 1 in `__getattr__` Call from session script: cwd | ('/',) | None Call from system under test: cwd | ('/',) | {} ScriptedSession 1 in `_next_script_call` ScriptedSession 1 next call: Call(method_name='dir', result='-rw-r--r-- 1 dummy_user dummy_group 512 May 08 2024 newer', args=('',), kwargs=None) Call from session script: dir | ('',) | None Call from system under test: dir | ('',) | None ScriptedSession 1 in `_next_script_call` ScriptedSession 1 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) ScriptedSession 1 in `__getattr__` Call from session script: cwd | ('/',) | None Call from system under test: cwd | ('/',) | {} ScriptedSession 2 in `_next_script_call` ScriptedSession 2 next call: Call(method_name='__init__', result=None, args=None, kwargs=None) ScriptedSession 2 in `_next_script_call` ScriptedSession 2 next call: Call(method_name='pwd', result='/', args=None, kwargs=None) ScriptedSession 2 in `__getattr__` Call from session script: pwd | None | None Call from system under test: pwd | () | {} ScriptedSession 2 in `_next_script_call` ScriptedSession 2 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) ScriptedSession 2 in `__getattr__` Call from session script: cwd | ('/',) | None Call from system under test: cwd | ('/',) | {} ScriptedSession 2 in `_next_script_call` ScriptedSession 2 next call: Call(method_name='voidcmd', result=None, args=('TYPE I',), kwargs=None) ScriptedSession 2 in `__getattr__` Call from session script: voidcmd | ('TYPE I',) | None Call from system under test: voidcmd | ('TYPE I',) | {} ScriptedSession 2 in `_next_script_call` ScriptedSession 2 next call: Call(method_name='transfercmd', result=<_io.BytesIO object at 0x7f0d873647c0>, args=('RETR newer', None), kwargs=None) Call from session script: transfercmd | ('RETR newer', None) | None Call from system under test: transfercmd | ('RETR newer', None) | None ScriptedSession 2 in `_next_script_call` ScriptedSession 2 next call: Call(method_name='voidresp', result=None, args=None, kwargs=None) ScriptedSession 2 in `__getattr__` Call from session script: voidresp | None | None Call from system under test: voidresp | () | {} ScriptedSession 2 in `_next_script_call` ScriptedSession 2 next call: Call(method_name='close', result=None, args=None, kwargs=None) ScriptedSession 2 in `__getattr__` Call from session script: close | None | None Call from system under test: close | () | {} ScriptedSession 1 in `_next_script_call` ScriptedSession 1 next call: Call(method_name='close', result=None, args=None, kwargs=None) ScriptedSession 1 in `__getattr__` Call from session script: close | None | None Call from system under test: close | () | {} =============================== warnings summary =============================== test/test_public_servers.py:175 /builddir/build/BUILD/ftputil-5.1.0/test/test_public_servers.py:175: PytestUnknownMarkWarning: Unknown pytest.mark.slow_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.slow_test -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/test_host.py::TestUploadAndDownload::test_conditional_download_with_newer_target ============ 1 failed, 148 passed, 1 deselected, 1 warning in 2.75s ============ RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.b6ev5Z (%check) Bad exit status from /var/tmp/rpm-tmp.b6ev5Z (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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 -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ftputil.spec