Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-keygen.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1690452507.660545/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/copr-keygen.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/copr-keygen-1.90-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/copr-keygen.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1690452507.660545/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/copr-keygen.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/copr-keygen-1.90-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/copr-keygen.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1690452507.660545/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/copr-keygen.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tiXX27 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf copr-keygen-1.90 + /usr/bin/gzip -dc /builddir/build/SOURCES/copr-keygen-1.90.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd copr-keygen-1.90 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.28Iki3 + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.90 + 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/copr_keygen copying src/copr_keygen/logic.py -> build/lib/copr_keygen copying src/copr_keygen/gpg.py -> build/lib/copr_keygen copying src/copr_keygen/exceptions.py -> build/lib/copr_keygen copying src/copr_keygen/__init__.py -> build/lib/copr_keygen copying src/copr_keygen/default_settings.py -> build/lib/copr_keygen copying src/copr_keygen/util.py -> build/lib/copr_keygen running egg_info creating src/copr_keygen.egg-info writing src/copr_keygen.egg-info/PKG-INFO writing dependency_links to src/copr_keygen.egg-info/dependency_links.txt writing requirements to src/copr_keygen.egg-info/requires.txt writing top-level names to src/copr_keygen.egg-info/top_level.txt writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' reading manifest file 'src/copr_keygen.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.WuNPVt + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64 ++ dirname /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64 + cd copr-keygen-1.90 + 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/copr-keygen-1.90-1.x86_64 running install /usr/lib/python3.9/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/copr-keygen-1.90-1.x86_64/usr creating /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib creating /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9 creating /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/logic.py -> /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/gpg.py -> /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/exceptions.py -> /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/__init__.py -> /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/default_settings.py -> /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/util.py -> /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen/logic.py to logic.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen/gpg.py to gpg.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen/exceptions.py to exceptions.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen/default_settings.py to default_settings.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen/util.py to util.cpython-39.pyc writing byte-compilation script '/tmp/tmpl0kjaf28.py' /usr/bin/python3 /tmp/tmpl0kjaf28.py removing /tmp/tmpl0kjaf28.py running install_egg_info running egg_info creating src/copr_keygen.egg-info writing src/copr_keygen.egg-info/PKG-INFO writing dependency_links to src/copr_keygen.egg-info/dependency_links.txt writing requirements to src/copr_keygen.egg-info/requires.txt writing top-level names to src/copr_keygen.egg-info/top_level.txt writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' reading manifest file 'src/copr_keygen.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' Copying src/copr_keygen.egg-info to /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/lib/python3.9/site-packages/copr_keygen-1.90-py3.9.egg-info running install_scripts + find /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64 -name '*.exe' -delete + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/etc/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/etc/sudoers.d + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen/httpd + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen/sign + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/bin + install -d -m 500 /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/var/lib/copr-keygen/phrases + install -d -m 500 /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/var/lib/copr-keygen/gnupg + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/var/log/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/etc/logrotate.d/ + install -d /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/etc/cron.daily + /usr/bin/install -p -m 0755 run/gpg_copr.sh /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64//usr/bin/gpg_copr.sh + /usr/bin/install -p -m 0755 run/gpg-copr /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64//usr/bin/ + /usr/bin/install -p -m 0755 run/gpg-copr-prolong /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64//usr/bin/ + /usr/bin/install -p -m 0755 run/application.py /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/copr-keygen/ + /usr/bin/install -p -m 0644 configs/logrotate /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/etc/logrotate.d/copr-keygen + /usr/bin/install -p -m 0755 configs/cron.daily /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/etc/cron.daily/copr-keygen + cp -a configs/sudoers/copr_signer /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/etc/sudoers.d/copr_signer + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 1.90-1 --unique-debug-suffix -1.90-1.x86_64 --unique-debug-src-base copr-keygen-1.90-1.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/copr-keygen-1.90 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/copr-keygen-1.90-1.x86_64/usr/lib/python3.9 using /usr/bin/python3.9 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.0y1T2y + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.90 + ./run_tests.sh -vv --no-cov ============================= test session starts ============================== platform linux -- Python 3.9.9, pytest-6.2.2, py-1.11.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/copr-keygen-1.90 collecting ... collected 21 items tests/test_handles.py::test_ping PASSED [ 4%] tests/test_handles.py::TestGenKey::test_gen_key PASSED [ 9%] tests/test_handles.py::TestGenKey::test_gen_key_user_not_exists PASSED [ 14%] tests/test_handles.py::TestGenKey::test_gen_key_with_existing_user PASSED [ 19%] tests/test_handles.py::TestGenKey::test_server_error_at_user_exists PASSED [ 23%] tests/test_handles.py::TestGenKey::test_server_error_at_create_new_key PASSED [ 28%] tests/test_logging.py::TestRemoteAddrFilter::test_backend PASSED [ 33%] tests/test_logging.py::TestRemoteAddrFilter::test_server PASSED [ 38%] tests/test_logic.py::TestEnsurePassphrase::test_add_content_to_empty_file PASSED [ 42%] tests/test_logic.py::TestEnsurePassphrase::test_file_creation PASSED [ 47%] tests/test_logic.py::test_ensure_passphrase_exist PASSED [ 52%] tests/test_logic.py::TestUserExists::test_exists PASSED [ 57%] tests/test_logic.py::TestUserExists::test_gpg_unknown_err PASSED [ 61%] tests/test_logic.py::TestUserExists::test_not_exists PASSED [ 66%] tests/test_logic.py::TestUserExists::test_popen_unknown_err PASSED [ 71%] tests/test_logic.py::TestGenKey::test_error_gpg PASSED [ 76%] tests/test_logic.py::TestGenKey::test_error_popen PASSED [ 80%] tests/test_logic.py::TestGenKey::test_simple_create PASSED [ 85%] tests/test_logic.py::TestGenKey::test_strange_situation_create PASSED [ 90%] tests/test_logic.py::TestGenKey::test_tmpfiles_errors PASSED [ 95%] tests/test_logic.py::TestGenKey::test_validate_name_email PASSED [100%] ============================== 21 passed in 0.22s ============================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: copr-keygen-1.90-1.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.4v2VjC + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.90 + DOCDIR=/builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen + cp -pr docs/INSTALL.rst /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen + cp -pr docs/README.rst /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen + cp -pr configs/local_settings.py.example /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/doc/copr-keygen + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.fknL6J + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.90 + LICENSEDIR=/builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/licenses/copr-keygen + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/licenses/copr-keygen + cp -pr LICENSE /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64/usr/share/licenses/copr-keygen + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(copr-keygen) = 1.90-1 copr-keygen = 1.90-1 python3.9dist(copr-keygen) = 1.90 python3dist(copr-keygen) = 1.90 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh Requires(post): /bin/sh Requires(postun): /bin/sh Requires: /bin/sh /usr/bin/python3 python(abi) = 3.9 python3.9dist(flask) python3.9dist(six) python3.9dist(sphinxcontrib-httpdomain) Recommends: logrotate Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64 Wrote: /builddir/build/RPMS/copr-keygen-1.90-1.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.JwFnQX + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.90 + /usr/bin/rm -rf /builddir/build/BUILDROOT/copr-keygen-1.90-1.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0