Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/dist-git.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1687677902.522743/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/dist-git.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 warning: line 51: Possible unexpanded macro in: Requires: selinux-policy >= %{_selinux_policy_version} Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/dist-git-1.17-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/dist-git.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1687677902.522743/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/dist-git.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 warning: line 51: Possible unexpanded macro in: Requires: selinux-policy >= %{_selinux_policy_version} Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/dist-git-1.17-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/dist-git.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1687677902.522743/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/dist-git.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.lXxemA + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dist-git-1.17 + /usr/bin/gzip -dc /builddir/build/SOURCES/dist-git-1.17.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd dist-git-1.17 + /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.5QH6A5 + umask 022 + cd /builddir/build/BUILD + cd dist-git-1.17 + cd selinux + for selinuxvariant in mls targeted + make NAME=mls -f /usr/share/selinux/devel/Makefile Compiling mls dist_git module Creating mls dist_git.pp policy package rm tmp/dist_git.mod.fc tmp/dist_git.mod + mv dist_git.pp dist_git.pp.mls + make NAME=mls -f /usr/share/selinux/devel/Makefile clean rm -fR tmp rm -f *.pp + for selinuxvariant in mls targeted + make NAME=targeted -f /usr/share/selinux/devel/Makefile Compiling targeted dist_git module Creating targeted dist_git.pp policy package rm tmp/dist_git.mod.fc tmp/dist_git.mod + mv dist_git.pp dist_git.pp.targeted + make NAME=targeted -f /usr/share/selinux/devel/Makefile clean rm -fR tmp rm -f *.pp + cd - /builddir/build/BUILD/dist-git-1.17 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.VKqCXy + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64 ++ dirname /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64 + cd dist-git-1.17 + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/dist-git/ + cp -a scripts/dist-git/dist-git-gc scripts/dist-git/hooks scripts/dist-git/mkbranch scripts/dist-git/mkbranch_branching scripts/dist-git/remove_unused_sources scripts/dist-git/setup_git_package /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/dist-git/ + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/etc/dist-git + cp -a configs/dist-git/dist-git.conf /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/etc/dist-git/ + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/etc/httpd/conf.d/dist-git + mkdir -p /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/lib/systemd/system + cp -a configs/httpd/dist-git.conf /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/etc/httpd/conf.d/ + cp -a configs/httpd/dist-git/git-smart-http.conf configs/httpd/dist-git/lookaside-upload.conf.example configs/httpd/dist-git/lookaside.conf configs/httpd/dist-git/manifest.conf /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/etc/httpd/conf.d/dist-git/ + cp -a configs/systemd/dist-git-gc.service configs/systemd/dist-git-gc.timer configs/systemd/dist-git.socket configs/systemd/dist-git@.service /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/lib/systemd/system/ + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/var/lib/dist-git + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/var/lib/dist-git/git + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/var/lib/dist-git/cache + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/var/lib/dist-git/cache/lookaside + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/var/lib/dist-git/cache/lookaside/pkgs + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/var/lib/dist-git/web + cp -a scripts/httpd/upload.cgi /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/var/lib/dist-git/web/ + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/bin + ln -s /usr/share/dist-git/setup_git_package /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/bin/setup_git_package + ln -s /usr/share/dist-git/mkbranch /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/bin/mkbranch + ln -s /usr/share/dist-git/mkbranch_branching /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/bin/mkbranch_branching + ln -s /usr/share/dist-git/remove_unused_sources /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/bin/remove_unused_sources + mv /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/dist-git/dist-git-gc /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/bin/dist-git-gc + cd selinux + for selinuxvariant in mls targeted + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/selinux/mls + install -p -m 644 dist_git.pp.mls /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/selinux/mls/dist_git.pp + for selinuxvariant in mls targeted + install -d /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/selinux/targeted + install -p -m 644 dist_git.pp.targeted /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/selinux/targeted/dist_git.pp + cd - /builddir/build/BUILD/dist-git-1.17 + hardlink -cv /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/selinux Mode: real Files: 2 Linked: 0 files Compared: 0 xattrs Compared: 0 files Saved: 0 B Duration: 0.000044 seconds + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 1.17-1 --unique-debug-suffix -1.17-1.x86_64 --unique-debug-src-base dist-git-1.17-1.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/dist-git-1.17 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 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.MduUYF + umask 022 + cd /builddir/build/BUILD + cd dist-git-1.17 + pytest -vv . ============================= 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/dist-git-1.17 collecting ... collected 42 items tests/test_upload_script.py::UploadTest::test_accepts_sha_512_hash_0_pkg PASSED [ 2%] tests/test_upload_script.py::UploadTest::test_accepts_sha_512_hash_1_rpms_pkg PASSED [ 4%] tests/test_upload_script.py::UploadTest::test_accepts_sha_512_hash_2_apbs_pkg PASSED [ 7%] tests/test_upload_script.py::UploadTest::test_bad_sha512_hash_0_pkg PASSED [ 9%] tests/test_upload_script.py::UploadTest::test_bad_sha512_hash_1_rpms_pkg PASSED [ 11%] tests/test_upload_script.py::UploadTest::test_bad_sha512_hash_2_apbs_pkg PASSED [ 14%] tests/test_upload_script.py::UploadTest::test_check_existing_file_0_pkg PASSED [ 16%] tests/test_upload_script.py::UploadTest::test_check_existing_file_1_rpms_pkg PASSED [ 19%] tests/test_upload_script.py::UploadTest::test_check_existing_file_2_apbs_pkg PASSED [ 21%] tests/test_upload_script.py::UploadTest::test_check_existing_file_3_old PASSED [ 23%] tests/test_upload_script.py::UploadTest::test_check_existing_file_4_rpms_old PASSED [ 26%] tests/test_upload_script.py::UploadTest::test_check_existing_file_5_apbs_old PASSED [ 28%] tests/test_upload_script.py::UploadTest::test_check_existing_file_with_bad_hash_0_pkg PASSED [ 30%] tests/test_upload_script.py::UploadTest::test_check_existing_file_with_bad_hash_1_rpms_pkg PASSED [ 33%] tests/test_upload_script.py::UploadTest::test_check_existing_file_with_bad_hash_2_apbs_pkg PASSED [ 35%] tests/test_upload_script.py::UploadTest::test_check_existing_sha512_correct_0_pkg PASSED [ 38%] tests/test_upload_script.py::UploadTest::test_check_existing_sha512_correct_1_rpms_pkg PASSED [ 40%] tests/test_upload_script.py::UploadTest::test_check_existing_sha512_correct_2_apbs_pkg PASSED [ 42%] tests/test_upload_script.py::UploadTest::test_check_existing_sha512_mismatch_0_pkg PASSED [ 45%] tests/test_upload_script.py::UploadTest::test_check_existing_sha512_mismatch_1_rpms_pkg PASSED [ 47%] tests/test_upload_script.py::UploadTest::test_check_existing_sha512_mismatch_2_apbs_pkg PASSED [ 50%] tests/test_upload_script.py::UploadTest::test_check_missing_file_0_pkg PASSED [ 52%] tests/test_upload_script.py::UploadTest::test_check_missing_file_1_rpms_pkg PASSED [ 54%] tests/test_upload_script.py::UploadTest::test_check_missing_file_2_apbs_pkg PASSED [ 57%] tests/test_upload_script.py::UploadTest::test_rejects_unknown_hash_0_pkg PASSED [ 59%] tests/test_upload_script.py::UploadTest::test_rejects_unknown_hash_1_rpms_pkg PASSED [ 61%] tests/test_upload_script.py::UploadTest::test_rejects_unknown_hash_2_apbs_pkg PASSED [ 64%] tests/test_upload_script.py::UploadTest::test_upload_file_0_pkg PASSED [ 66%] tests/test_upload_script.py::UploadTest::test_upload_file_1_rpms_pkg PASSED [ 69%] tests/test_upload_script.py::UploadTest::test_upload_file_2_apbs_pkg PASSED [ 71%] tests/test_upload_script.py::UploadTest::test_upload_file_bad_checksum_0_pkg PASSED [ 73%] tests/test_upload_script.py::UploadTest::test_upload_file_bad_checksum_1_rpms_pkg PASSED [ 76%] tests/test_upload_script.py::UploadTest::test_upload_file_bad_checksum_2_apbs_pkg PASSED [ 78%] tests/test_upload_script.py::UploadTest::test_upload_invalid_mtime_0_pkg PASSED [ 80%] tests/test_upload_script.py::UploadTest::test_upload_invalid_mtime_1_rpms_pkg PASSED [ 83%] tests/test_upload_script.py::UploadTest::test_upload_invalid_mtime_2_apbs_pkg PASSED [ 85%] tests/test_upload_script.py::UploadTest::test_upload_mtime_0_pkg PASSED [ 88%] tests/test_upload_script.py::UploadTest::test_upload_mtime_1_rpms_pkg PASSED [ 90%] tests/test_upload_script.py::UploadTest::test_upload_mtime_2_apbs_pkg PASSED [ 92%] tests/test_upload_script.py::UploadTest::test_upload_to_non_existing_module_0_bad PASSED [ 95%] tests/test_upload_script.py::UploadTest::test_upload_to_non_existing_module_1_rpms_bad PASSED [ 97%] tests/test_upload_script.py::UploadTest::test_upload_to_non_existing_module_2_apbs_bad PASSED [100%] ============================== 42 passed in 6.43s ============================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: dist-git-1.17-1.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.6XR4GW + umask 022 + cd /builddir/build/BUILD + cd dist-git-1.17 + DOCDIR=/builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/doc/dist-git + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/doc/dist-git + cp -pr README.md /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/doc/dist-git + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.TSRJmF + umask 022 + cd /builddir/build/BUILD + cd dist-git-1.17 + LICENSEDIR=/builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/licenses/dist-git + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/licenses/dist-git + cp -pr LICENSE /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/licenses/dist-git + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(dist-git) = 1.17-1 dist-git = 1.17-1 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh shadow-utils Requires(preun): /bin/sh Requires: /bin/bash /usr/bin/python3 Processing files: dist-git-selinux-1.17-1.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.y169PC + umask 022 + cd /builddir/build/BUILD + cd dist-git-1.17 + DOCDIR=/builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/doc/dist-git-selinux + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/doc/dist-git-selinux + cp -pr selinux/dist_git.fc selinux/dist_git.if selinux/dist_git.pp.mls selinux/dist_git.pp.targeted selinux/dist_git.te /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64/usr/share/doc/dist-git-selinux + RPM_EC=0 ++ jobs -p + exit 0 warning: absolute symlink: /usr/bin/mkbranch -> /usr/share/dist-git/mkbranch warning: absolute symlink: /usr/bin/mkbranch_branching -> /usr/share/dist-git/mkbranch_branching warning: absolute symlink: /usr/bin/remove_unused_sources -> /usr/share/dist-git/remove_unused_sources warning: absolute symlink: /usr/bin/setup_git_package -> /usr/share/dist-git/setup_git_package Provides: dist-git-selinux = 1.17-1 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh /sbin/restorecon /usr/sbin/semodule Requires(postun): /bin/sh /sbin/restorecon /usr/sbin/semodule Requires: /usr/bin/bash Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64 Wrote: /builddir/build/RPMS/dist-git-1.17-1.noarch.rpm Wrote: /builddir/build/RPMS/dist-git-selinux-1.17-1.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.bG1cNE + umask 022 + cd /builddir/build/BUILD + cd dist-git-1.17 + /usr/bin/rm -rf /builddir/build/BUILDROOT/dist-git-1.17-1.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0