Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/copr-keygen.spec'], chrootPath='/var/lib/mock/f33-build-30242253-4133934/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=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --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 Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1632960000 Wrote: /builddir/build/SRPMS/copr-keygen-1.81-1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/copr-keygen.spec'], chrootPath='/var/lib/mock/f33-build-30242253-4133934/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=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --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 Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1632960000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.z3464F + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf copr-keygen-1.81 + /usr/bin/gzip -dc /builddir/build/SOURCES/copr-keygen-1.81.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd copr-keygen-1.81 + /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.61xokE + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.81 + 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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-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/__init__.py -> build/lib/copr_keygen copying src/copr_keygen/default_settings.py -> build/lib/copr_keygen copying src/copr_keygen/exceptions.py -> build/lib/copr_keygen copying src/copr_keygen/gpg.py -> build/lib/copr_keygen copying src/copr_keygen/logic.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' writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' + make -C docs -j8 html make: Entering directory '/builddir/build/BUILD/copr-keygen-1.81/docs' sphinx-build-3 -b html -d _build/doctrees . _build/html Running Sphinx v3.2.1 making output directory... done WARNING: html_static_path entry '_static' does not exist building [mo]: targets for 0 po files that are out of date building [html]: targets for 4 source files that are out of date updating environment: [new config] 4 added, 0 changed, 0 removed reading sources... [ 25%] Autodoc reading sources... [ 50%] INSTALL reading sources... [ 75%] README reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] Autodoc writing output... [ 50%] INSTALL writing output... [ 75%] README writing output... [100%] index /builddir/build/BUILD/copr-keygen-1.81/docs/Autodoc.rst:1: WARNING: Could not lex literal_block as "http". Highlighting skipped. generating indices... genindex http-routingtable py-modindexdone highlighting module code... [ 50%] copr_keygen.exceptions highlighting module code... [100%] copr_keygen.logic writing additional pages... searchdone copying static files... ... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 2 warnings. The HTML pages are in _build/html. Build finished. The HTML pages are in _build/html. make: Leaving directory '/builddir/build/BUILD/copr-keygen-1.81/docs' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.wsm7cD + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch ++ dirname /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch + cd copr-keygen-1.81 + 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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch running install running install_lib creating /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr creating /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib creating /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9 creating /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/__init__.py -> /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/default_settings.py -> /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/exceptions.py -> /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/gpg.py -> /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/logic.py -> /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/util.py -> /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/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.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen/exceptions.py to exceptions.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen/gpg.py to gpg.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen/logic.py to logic.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen/util.py to util.cpython-39.pyc writing byte-compilation script '/tmp/tmpbz5b7ytl.py' /usr/bin/python3 /tmp/tmpbz5b7ytl.py removing /tmp/tmpbz5b7ytl.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' writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' Copying src/copr_keygen.egg-info to /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9/site-packages/copr_keygen-1.81-py3.9.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/bin/__pycache__ + find /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch -name '*.exe' -delete + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/etc/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/etc/sudoers.d + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen/httpd + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen/sign + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/bin + install -d -m 500 /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/var/lib/copr-keygen/phrases + install -d -m 500 /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/var/lib/copr-keygen/gnupg + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/var/log/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/etc/logrotate.d/ + install -d /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/etc/cron.daily + /usr/bin/install -p -m 0755 run/gpg_copr.sh /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch//usr/bin/gpg_copr.sh + /usr/bin/install -p -m 0755 run/gpg-copr /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch//usr/bin/ + /usr/bin/install -p -m 0755 run/gpg-copr-prolong /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch//usr/bin/ + /usr/bin/install -p -m 0755 run/application.py /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/copr-keygen/ + /usr/bin/install -p -m 0644 configs/httpd/copr-keygen.conf.example /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen/httpd/ + /usr/bin/install -p -m 0644 configs/logrotate /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/etc/logrotate.d/copr-keygen + /usr/bin/install -p -m 0644 configs/sign/sign.conf.example /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen/sign/sign.conf.example + /usr/bin/install -p -m 0755 configs/cron.daily /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/etc/cron.daily/copr-keygen + cp -a configs/sudoers/copr_signer /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/etc/sudoers.d/copr_signer + cp -a docs/_build/html /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen/ + /usr/lib/rpm/find-debuginfo.sh -j8 --strict-build-id -m -i --build-id-seed 1.81-1.fc33 --unique-debug-suffix -1.81-1.fc33.noarch --unique-debug-src-base copr-keygen-1.81-1.fc33.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/copr-keygen-1.81 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/lib/python3.9 using python3.9 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs *** WARNING: ./usr/share/copr-keygen/application.py is executable but has no shebang, removing executable bit mangling shebang in /usr/bin/gpg_copr.sh from /bin/sh to #!/usr/bin/sh mangling shebang in /usr/bin/gpg-copr-prolong from /bin/sh to #!/usr/bin/sh mangling shebang in /etc/cron.daily/copr-keygen from /bin/sh to #!/usr/bin/sh Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.i5IeDD + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.81 + PYTHONPATH=./src: + /usr/bin/python3 -B -m pytest -vv --cov-report term-missing --cov ./src tests ============================= test session starts ============================== platform linux -- Python 3.9.7, pytest-6.0.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/copr-keygen-1.81 plugins: cov-2.11.1 collecting ... collected 18 items tests/test_handles.py::test_ping PASSED [ 5%] tests/test_handles.py::TestGenKey::test_gen_key PASSED [ 11%] tests/test_handles.py::TestGenKey::test_gen_key_user_not_exists PASSED [ 16%] tests/test_handles.py::TestGenKey::test_gen_key_with_existing_user PASSED [ 22%] tests/test_handles.py::TestGenKey::test_server_error_at_user_exists PASSED [ 27%] tests/test_handles.py::TestGenKey::test_server_error_at_create_new_key PASSED [ 33%] tests/test_logic.py::TestEnsurePassphrase::test_add_content_to_empty_file PASSED [ 38%] tests/test_logic.py::TestEnsurePassphrase::test_file_creation PASSED [ 44%] tests/test_logic.py::test_ensure_passphrase_exist PASSED [ 50%] tests/test_logic.py::TestUserExists::test_exists PASSED [ 55%] 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 [ 72%] tests/test_logic.py::TestGenKey::test_error_gpg PASSED [ 77%] tests/test_logic.py::TestGenKey::test_error_popen PASSED [ 83%] tests/test_logic.py::TestGenKey::test_simple_create PASSED [ 88%] tests/test_logic.py::TestGenKey::test_strange_situation_create PASSED [ 94%] tests/test_logic.py::TestGenKey::test_tmpfiles_errors PASSED [100%] ----------- coverage: platform linux, python 3.9.7-final-0 ----------- Name Stmts Miss Cover Missing ------------------------------------------------------------------- src/copr_keygen/__init__.py 64 10 84% 27-36, 127-130 src/copr_keygen/default_settings.py 9 0 100% src/copr_keygen/exceptions.py 17 0 100% src/copr_keygen/gpg.py 2 0 100% src/copr_keygen/logic.py 76 0 100% src/copr_keygen/util.py 13 0 100% ------------------------------------------------------------------- TOTAL 181 10 94% ============================== 18 passed in 0.58s ============================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: copr-keygen-1.81-1.fc33.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.H7AFuD + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.81 + DOCDIR=/builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen + cp -pr docs/INSTALL.rst /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen + cp -pr docs/README.rst /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen + cp -pr configs/local_settings.py.example /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/doc/copr-keygen + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.WswxNE + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.81 + LICENSEDIR=/builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/licenses/copr-keygen + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/licenses/copr-keygen + cp -pr LICENSE /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch/usr/share/licenses/copr-keygen + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(copr-keygen) = 1.81-1.fc33 copr-keygen = 1.81-1.fc33 python3.9dist(copr-keygen) = 1.81 python3dist(copr-keygen) = 1.81 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 initscripts Requires(postun): /bin/sh initscripts Requires: /usr/bin/python3 /usr/bin/sh python(abi) = 3.9 python3.9dist(flask) python3.9dist(six) python3.9dist(sphinxcontrib-httpdomain) Recommends: logrotate Processing files: copr-keygen-doc-1.81-1.fc33.noarch Provides: copr-keygen-doc = 1.81-1.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Obsoletes: copr-doc < 1.38 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch Wrote: /builddir/build/RPMS/copr-keygen-1.81-1.fc33.noarch.rpm Wrote: /builddir/build/RPMS/copr-keygen-doc-1.81-1.fc33.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.O5o8gF + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.81 + /usr/bin/rm -rf /builddir/build/BUILDROOT/copr-keygen-1.81-1.fc33.noarch + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0