Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-forked.spec'], chrootPath='/var/lib/mock/f40-build-2317989-58198/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=864000uid=996gid=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-pytest-forked.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=1706227200 Wrote: /builddir/build/SRPMS/python-pytest-forked-1.6.0-5.fc40.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-pytest-forked.spec'], chrootPath='/var/lib/mock/f40-build-2317989-58198/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=864000uid=996gid=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-pytest-forked.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=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IBlmdV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-forked-1.6.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-forked-1.6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-forked-1.6.0 + rm -rf /builddir/build/BUILD/pytest-forked-1.6.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0-SPECPARTS + /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.J5zkip + umask 022 + cd /builddir/build/BUILD + cd pytest-forked-1.6.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-forked-1.6.0/pyproject-wheeldir --output /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires Handling setuptools >= 41.4 from build-system.requires Requirement not satisfied: setuptools >= 41.4 Handling setuptools_scm >= 3.3 from build-system.requires Requirement not satisfied: setuptools_scm >= 3.3 Handling wheel >= 0.33.6 from build-system.requires Requirement not satisfied: wheel >= 0.33.6 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-pytest-forked-1.6.0-5.fc40.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-pytest-forked.spec'], chrootPath='/var/lib/mock/f40-build-2317989-58198/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=864000uid=996gid=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-pytest-forked.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=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.X3fkap + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-forked-1.6.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-forked-1.6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-forked-1.6.0 + rm -rf /builddir/build/BUILD/pytest-forked-1.6.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0-SPECPARTS + /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.GEX22R + umask 022 + cd /builddir/build/BUILD + cd pytest-forked-1.6.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-forked-1.6.0/pyproject-wheeldir --output /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires Handling setuptools >= 41.4 from build-system.requires Requirement satisfied: setuptools >= 41.4 (installed: setuptools 68.2.2) Handling setuptools_scm >= 3.3 from build-system.requires Requirement satisfied: setuptools_scm >= 3.3 (installed: setuptools_scm 8.0.4) Handling wheel >= 0.33.6 from build-system.requires Requirement satisfied: wheel >= 0.33.6 (installed: wheel 0.41.2) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) Handling setuptools_scm from get_requires_for_build_wheel Requirement satisfied: setuptools_scm (installed: setuptools_scm 8.0.4) WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' running dist_info creating pytest_forked.egg-info writing pytest_forked.egg-info/PKG-INFO writing dependency_links to pytest_forked.egg-info/dependency_links.txt writing entry points to pytest_forked.egg-info/entry_points.txt writing requirements to pytest_forked.egg-info/requires.txt writing top-level names to pytest_forked.egg-info/top_level.txt writing manifest file 'pytest_forked.egg-info/SOURCES.txt' reading manifest file 'pytest_forked.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'pytest_forked.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/pytest-forked-1.6.0/pytest_forked-1.6.0.dist-info' Handling py from hook generated metadata: Requires-Dist (pytest-forked) Requirement not satisfied: py Handling pytest >=3.10 from hook generated metadata: Requires-Dist (pytest-forked) Requirement not satisfied: pytest >=3.10 + cat /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires + rm -rfv pytest_forked-1.6.0.dist-info/ removed 'pytest_forked-1.6.0.dist-info/LICENSE' removed 'pytest_forked-1.6.0.dist-info/entry_points.txt' removed 'pytest_forked-1.6.0.dist-info/top_level.txt' removed 'pytest_forked-1.6.0.dist-info/METADATA' removed directory 'pytest_forked-1.6.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-pytest-forked-1.6.0-5.fc40.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-pytest-forked.spec'], chrootPath='/var/lib/mock/f40-build-2317989-58198/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=864000uid=996gid=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-pytest-forked.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=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HFjE0Q + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-forked-1.6.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-forked-1.6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-forked-1.6.0 + rm -rf /builddir/build/BUILD/pytest-forked-1.6.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0-SPECPARTS + /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.w3VsGc + umask 022 + cd /builddir/build/BUILD + cd pytest-forked-1.6.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-forked-1.6.0/pyproject-wheeldir --output /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires Handling setuptools >= 41.4 from build-system.requires Requirement satisfied: setuptools >= 41.4 (installed: setuptools 68.2.2) Handling setuptools_scm >= 3.3 from build-system.requires Requirement satisfied: setuptools_scm >= 3.3 (installed: setuptools_scm 8.0.4) Handling wheel >= 0.33.6 from build-system.requires Requirement satisfied: wheel >= 0.33.6 (installed: wheel 0.41.2) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) Handling setuptools_scm from get_requires_for_build_wheel Requirement satisfied: setuptools_scm (installed: setuptools_scm 8.0.4) WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' running dist_info creating pytest_forked.egg-info writing pytest_forked.egg-info/PKG-INFO writing dependency_links to pytest_forked.egg-info/dependency_links.txt writing entry points to pytest_forked.egg-info/entry_points.txt writing requirements to pytest_forked.egg-info/requires.txt writing top-level names to pytest_forked.egg-info/top_level.txt writing manifest file 'pytest_forked.egg-info/SOURCES.txt' reading manifest file 'pytest_forked.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'pytest_forked.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/pytest-forked-1.6.0/pytest_forked-1.6.0.dist-info' Handling py from hook generated metadata: Requires-Dist (pytest-forked) Requirement satisfied: py (installed: py 1.11.0) Handling pytest >=3.10 from hook generated metadata: Requires-Dist (pytest-forked) Requirement satisfied: pytest >=3.10 (installed: pytest 7.3.2) + cat /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires + rm -rfv pytest_forked-1.6.0.dist-info/ removed 'pytest_forked-1.6.0.dist-info/LICENSE' removed 'pytest_forked-1.6.0.dist-info/entry_points.txt' removed 'pytest_forked-1.6.0.dist-info/top_level.txt' removed 'pytest_forked-1.6.0.dist-info/METADATA' removed directory 'pytest_forked-1.6.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-pytest-forked-1.6.0-5.fc40.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-pytest-forked.spec'], chrootPath='/var/lib/mock/f40-build-2317989-58198/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=864000uid=996gid=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-pytest-forked.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=1706227200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.djG2Y4 + umask 022 + cd /builddir/build/BUILD + cd pytest-forked-1.6.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-forked-1.6.0/pyproject-wheeldir --output /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires Handling setuptools >= 41.4 from build-system.requires Requirement satisfied: setuptools >= 41.4 (installed: setuptools 68.2.2) Handling setuptools_scm >= 3.3 from build-system.requires Requirement satisfied: setuptools_scm >= 3.3 (installed: setuptools_scm 8.0.4) Handling wheel >= 0.33.6 from build-system.requires Requirement satisfied: wheel >= 0.33.6 (installed: wheel 0.41.2) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.41.2) Handling setuptools_scm from get_requires_for_build_wheel Requirement satisfied: setuptools_scm (installed: setuptools_scm 8.0.4) WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' running dist_info writing pytest_forked.egg-info/PKG-INFO writing dependency_links to pytest_forked.egg-info/dependency_links.txt writing entry points to pytest_forked.egg-info/entry_points.txt writing requirements to pytest_forked.egg-info/requires.txt writing top-level names to pytest_forked.egg-info/top_level.txt reading manifest file 'pytest_forked.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'pytest_forked.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/pytest-forked-1.6.0/pytest_forked-1.6.0.dist-info' Handling py from hook generated metadata: Requires-Dist (pytest-forked) Requirement satisfied: py (installed: py 1.11.0) Handling pytest >=3.10 from hook generated metadata: Requires-Dist (pytest-forked) Requirement satisfied: pytest >=3.10 (installed: pytest 7.3.2) + cat /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-buildrequires + rm -rfv pytest_forked-1.6.0.dist-info/ removed 'pytest_forked-1.6.0.dist-info/LICENSE' removed 'pytest_forked-1.6.0.dist-info/entry_points.txt' removed 'pytest_forked-1.6.0.dist-info/top_level.txt' removed 'pytest_forked-1.6.0.dist-info/METADATA' removed directory 'pytest_forked-1.6.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cCtVoQ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 pytest-forked-1.6.0 + mkdir -p /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/pytest-forked-1.6.0/pyproject-wheeldir Processing /builddir/build/BUILD/pytest-forked-1.6.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' running dist_info creating /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info writing /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/dependency_links.txt writing entry points to /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/entry_points.txt writing requirements to /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file '/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-modern-metadata-fmvqkjz4/pytest_forked-1.6.0.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: pytest-forked Building wheel for pytest-forked (pyproject.toml): started Running command Building wheel for pytest-forked (pyproject.toml) WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/pytest_forked copying src/pytest_forked/__init__.py -> build/lib/pytest_forked installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/pytest_forked copying build/lib/pytest_forked/__init__.py -> build/bdist.linux-riscv64/wheel/pytest_forked running install_egg_info running egg_info writing src/pytest_forked.egg-info/PKG-INFO writing dependency_links to src/pytest_forked.egg-info/dependency_links.txt writing entry points to src/pytest_forked.egg-info/entry_points.txt writing requirements to src/pytest_forked.egg-info/requires.txt writing top-level names to src/pytest_forked.egg-info/top_level.txt reading manifest file 'src/pytest_forked.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/pytest_forked.egg-info/SOURCES.txt' Copying src/pytest_forked.egg-info to build/bdist.linux-riscv64/wheel/pytest_forked-1.6.0-py3.12.egg-info running install_scripts creating build/bdist.linux-riscv64/wheel/pytest_forked-1.6.0.dist-info/WHEEL creating '/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir/pip-wheel-v6u2p4zt/.tmp-h26k2mt3/pytest_forked-1.6.0-py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'pytest_forked/__init__.py' adding 'pytest_forked-1.6.0.dist-info/LICENSE' adding 'pytest_forked-1.6.0.dist-info/METADATA' adding 'pytest_forked-1.6.0.dist-info/WHEEL' adding 'pytest_forked-1.6.0.dist-info/entry_points.txt' adding 'pytest_forked-1.6.0.dist-info/top_level.txt' adding 'pytest_forked-1.6.0.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel Building wheel for pytest-forked (pyproject.toml): finished with status 'done' Created wheel for pytest-forked: filename=pytest_forked-1.6.0-py3-none-any.whl size=4877 sha256=a5a6159d4fc44bcce2d7f4d2f17bb7754f57a1eebaa54883bb1dc304b04e85dc Stored in directory: /builddir/.cache/pip/wheels/cc/3e/32/38bedef45cd93ae7b60b631a6eb49bd194423fe3c62146ea4d Successfully built pytest-forked + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Q9QyPX + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch ++ dirname /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 pytest-forked-1.6.0 ++ ls /builddir/build/BUILD/pytest-forked-1.6.0/pyproject-wheeldir/pytest_forked-1.6.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=pytest_forked==1.6.0 + '[' -z pytest_forked==1.6.0 ']' + TMPDIR=/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch --prefix /usr --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/pytest-forked-1.6.0/pyproject-wheeldir pytest_forked==1.6.0 Using pip 23.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) Looking in links: /builddir/build/BUILD/pytest-forked-1.6.0/pyproject-wheeldir Processing ./pyproject-wheeldir/pytest_forked-1.6.0-py3-none-any.whl Installing collected packages: pytest_forked Successfully installed pytest_forked-1.6.0 + '[' -d /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages ']' + site_dirs+=("/usr/lib/python3.12/site-packages") + '[' /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib64/python3.12/site-packages '!=' /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib64/python3.12/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.12/site-packages/pytest_forked-1.6.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages/pytest_forked-1.6.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch --record /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages/pytest_forked-1.6.0.dist-info/RECORD --output /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-record + rm -fv /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages/pytest_forked-1.6.0.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages/pytest_forked-1.6.0.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages/pytest_forked-1.6.0.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages/pytest_forked-1.6.0.dist-info/REQUESTED' ++ cut -f1 '-d ' ++ wc -l /builddir/build/BUILD/python-pytest-forked-1.6.0-5.fc40.noarch-pyproject-ghost-distinfo + lines=1 + '[' 1 -ne 1 ']' + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.6.0-5.fc40 --unique-debug-suffix -1.6.0-5.fc40.noarch --unique-debug-src-base python-pytest-forked-1.6.0-5.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pytest-forked-1.6.0 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /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/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Rck7iY + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 pytest-forked-1.6.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib64/python3.12/site-packages:/builddir/build/BUILDROOT/python-pytest-forked-1.6.0-5.fc40.noarch/usr/lib/python3.12/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/pytest-forked-1.6.0/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=8 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 rootdir: /builddir/build/BUILD/pytest-forked-1.6.0 configfile: tox.ini plugins: forked-1.6.0 collected 10 items testing/test_boxed.py ...xx. [ 60%] testing/test_xfail_behavior.py FFFF [100%] =================================== FAILURES =================================== ___________________________ test_xfail[strict xfail] ___________________________ is_crashing = True, is_strict = True testdir = @pytest.mark.parametrize( ("is_crashing", "is_strict"), ( pytest.param(True, True, id="strict xfail"), pytest.param(False, True, id="strict xpass"), pytest.param(True, False, id="non-strict xfail"), pytest.param(False, False, id="non-strict xpass"), ), ) def test_xfail(is_crashing, is_strict, testdir): """Test xfail/xpass/strict permutations.""" # pylint: disable=possibly-unused-variable sig_num = signal.SIGTERM.numerator test_func_body = ( "os.kill(os.getpid(), signal.SIGTERM)" if is_crashing else "assert True" ) if is_crashing: # marked xfailed and crashing, no matter strict or not expected_letter = "x" # XFAILED expected_lowercase = "xfailed" expected_word = "XFAIL" elif is_strict: # strict and not failing as expected should cause failure expected_letter = "F" # FAILED expected_lowercase = "failed" expected_word = FAILED_WORD elif not is_strict: # non-strict and not failing as expected should cause xpass expected_letter = "X" # XPASS expected_lowercase = "xpassed" expected_word = "XPASS" session_start_title = "*==== test session starts ====*" loaded_pytest_plugins = "plugins: forked*" collected_tests_num = "collected 1 item" expected_progress = f"test_xfail.py {expected_letter!s}*" failures_title = "*==== FAILURES ====*" failures_test_name = "*____ test_function ____*" failures_test_reason = "[XPASS(strict)] The process gets terminated" short_test_summary_title = "*==== short test summary info ====*" short_test_summary = f"{expected_word!s} test_xfail.py::test_function" if expected_lowercase == "xpassed": # XPASS wouldn't have the crash message from # pytest-forked because the crash doesn't happen short_test_summary = " ".join( ( short_test_summary, "The process gets terminated", ) ) reason_string = ( f"reason: The process gets terminated; " f"pytest-forked reason: " f"*:*: running the test CRASHED with signal {sig_num:d}" ) if expected_lowercase == "xfailed" and PYTEST_GTE_7_2: short_test_summary += " - " + reason_string total_summary_line = f"*==== 1 {expected_lowercase!s} in 0.*s* ====*" expected_lines = ( session_start_title, loaded_pytest_plugins, collected_tests_num, expected_progress, ) if expected_word == FAILED_WORD: # XPASS(strict) expected_lines += ( failures_title, failures_test_name, failures_test_reason, ) expected_lines += ( short_test_summary_title, short_test_summary, ) if expected_lowercase == "xpassed" and expected_word == FAILED_WORD: # XPASS(strict) expected_lines += (" " + reason_string,) expected_lines += (total_summary_line,) test_module = testdir.makepyfile( f""" import os import signal import pytest # The current implementation emits RuntimeWarning. pytestmark = pytest.mark.filterwarnings('ignore:pytest-forked xfail') @pytest.mark.xfail( reason='The process gets terminated', strict={is_strict!s}, ) @pytest.mark.forked def test_function(): {test_func_body!s} """ ) pytest_run_result = testdir.runpytest(test_module, "-ra") > pytest_run_result.stdout.fnmatch_lines(expected_lines) E Failed: fnmatch: '*==== test session starts ====*' E with: '============================= test session starts ==============================' E nomatch: 'plugins: forked*' E and: 'platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail0' E fnmatch: 'plugins: forked*' E with: 'plugins: forked-1.6.0' E exact match: 'collected 1 item' E nomatch: 'test_xfail.py x*' E and: '' E fnmatch: 'test_xfail.py x*' E with: 'test_xfail.py x [100%]' E nomatch: '*==== short test summary info ====*' E and: '' E fnmatch: '*==== short test summary info ====*' E with: '=========================== short test summary info ============================' E fnmatch: 'XFAIL test_xfail.py::test_function - reason: The process gets terminated; pytest-forked reason: *:*: running the test CRASHED with signal 15' E with: 'XFAIL test_xfail.py::test_function - reason: The process gets terminated; pytest-forked reason: :-1: running the test CRASHED with signal 15' E nomatch: '*==== 1 xfailed in 0.*s* ====*' E and: '============================== 1 xfailed in 3.89s ==============================' E remains unmatched: '*==== 1 xfailed in 0.*s* ====*' /builddir/build/BUILD/pytest-forked-1.6.0/testing/test_xfail_behavior.py:121: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail0 plugins: forked-1.6.0 collected 1 item test_xfail.py x [100%] =========================== short test summary info ============================ XFAIL test_xfail.py::test_function - reason: The process gets terminated; pytest-forked reason: :-1: running the test CRASHED with signal 15 ============================== 1 xfailed in 3.89s ============================== ___________________________ test_xfail[strict xpass] ___________________________ is_crashing = False, is_strict = True testdir = @pytest.mark.parametrize( ("is_crashing", "is_strict"), ( pytest.param(True, True, id="strict xfail"), pytest.param(False, True, id="strict xpass"), pytest.param(True, False, id="non-strict xfail"), pytest.param(False, False, id="non-strict xpass"), ), ) def test_xfail(is_crashing, is_strict, testdir): """Test xfail/xpass/strict permutations.""" # pylint: disable=possibly-unused-variable sig_num = signal.SIGTERM.numerator test_func_body = ( "os.kill(os.getpid(), signal.SIGTERM)" if is_crashing else "assert True" ) if is_crashing: # marked xfailed and crashing, no matter strict or not expected_letter = "x" # XFAILED expected_lowercase = "xfailed" expected_word = "XFAIL" elif is_strict: # strict and not failing as expected should cause failure expected_letter = "F" # FAILED expected_lowercase = "failed" expected_word = FAILED_WORD elif not is_strict: # non-strict and not failing as expected should cause xpass expected_letter = "X" # XPASS expected_lowercase = "xpassed" expected_word = "XPASS" session_start_title = "*==== test session starts ====*" loaded_pytest_plugins = "plugins: forked*" collected_tests_num = "collected 1 item" expected_progress = f"test_xfail.py {expected_letter!s}*" failures_title = "*==== FAILURES ====*" failures_test_name = "*____ test_function ____*" failures_test_reason = "[XPASS(strict)] The process gets terminated" short_test_summary_title = "*==== short test summary info ====*" short_test_summary = f"{expected_word!s} test_xfail.py::test_function" if expected_lowercase == "xpassed": # XPASS wouldn't have the crash message from # pytest-forked because the crash doesn't happen short_test_summary = " ".join( ( short_test_summary, "The process gets terminated", ) ) reason_string = ( f"reason: The process gets terminated; " f"pytest-forked reason: " f"*:*: running the test CRASHED with signal {sig_num:d}" ) if expected_lowercase == "xfailed" and PYTEST_GTE_7_2: short_test_summary += " - " + reason_string total_summary_line = f"*==== 1 {expected_lowercase!s} in 0.*s* ====*" expected_lines = ( session_start_title, loaded_pytest_plugins, collected_tests_num, expected_progress, ) if expected_word == FAILED_WORD: # XPASS(strict) expected_lines += ( failures_title, failures_test_name, failures_test_reason, ) expected_lines += ( short_test_summary_title, short_test_summary, ) if expected_lowercase == "xpassed" and expected_word == FAILED_WORD: # XPASS(strict) expected_lines += (" " + reason_string,) expected_lines += (total_summary_line,) test_module = testdir.makepyfile( f""" import os import signal import pytest # The current implementation emits RuntimeWarning. pytestmark = pytest.mark.filterwarnings('ignore:pytest-forked xfail') @pytest.mark.xfail( reason='The process gets terminated', strict={is_strict!s}, ) @pytest.mark.forked def test_function(): {test_func_body!s} """ ) pytest_run_result = testdir.runpytest(test_module, "-ra") > pytest_run_result.stdout.fnmatch_lines(expected_lines) E Failed: fnmatch: '*==== test session starts ====*' E with: '============================= test session starts ==============================' E nomatch: 'plugins: forked*' E and: 'platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail1' E fnmatch: 'plugins: forked*' E with: 'plugins: forked-1.6.0' E exact match: 'collected 1 item' E nomatch: 'test_xfail.py F*' E and: '' E fnmatch: 'test_xfail.py F*' E with: 'test_xfail.py F [100%]' E nomatch: '*==== FAILURES ====*' E and: '' E fnmatch: '*==== FAILURES ====*' E with: '=================================== FAILURES ===================================' E fnmatch: '*____ test_function ____*' E with: '________________________________ test_function _________________________________' E exact match: '[XPASS(strict)] The process gets terminated' E fnmatch: '*==== short test summary info ====*' E with: '=========================== short test summary info ============================' E exact match: 'FAILED test_xfail.py::test_function' E nomatch: '*==== 1 failed in 0.*s* ====*' E and: '============================== 1 failed in 4.59s ===============================' E remains unmatched: '*==== 1 failed in 0.*s* ====*' /builddir/build/BUILD/pytest-forked-1.6.0/testing/test_xfail_behavior.py:121: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail1 plugins: forked-1.6.0 collected 1 item test_xfail.py F [100%] =================================== FAILURES =================================== ________________________________ test_function _________________________________ [XPASS(strict)] The process gets terminated =========================== short test summary info ============================ FAILED test_xfail.py::test_function ============================== 1 failed in 4.59s =============================== _________________________ test_xfail[non-strict xfail] _________________________ is_crashing = True, is_strict = False testdir = @pytest.mark.parametrize( ("is_crashing", "is_strict"), ( pytest.param(True, True, id="strict xfail"), pytest.param(False, True, id="strict xpass"), pytest.param(True, False, id="non-strict xfail"), pytest.param(False, False, id="non-strict xpass"), ), ) def test_xfail(is_crashing, is_strict, testdir): """Test xfail/xpass/strict permutations.""" # pylint: disable=possibly-unused-variable sig_num = signal.SIGTERM.numerator test_func_body = ( "os.kill(os.getpid(), signal.SIGTERM)" if is_crashing else "assert True" ) if is_crashing: # marked xfailed and crashing, no matter strict or not expected_letter = "x" # XFAILED expected_lowercase = "xfailed" expected_word = "XFAIL" elif is_strict: # strict and not failing as expected should cause failure expected_letter = "F" # FAILED expected_lowercase = "failed" expected_word = FAILED_WORD elif not is_strict: # non-strict and not failing as expected should cause xpass expected_letter = "X" # XPASS expected_lowercase = "xpassed" expected_word = "XPASS" session_start_title = "*==== test session starts ====*" loaded_pytest_plugins = "plugins: forked*" collected_tests_num = "collected 1 item" expected_progress = f"test_xfail.py {expected_letter!s}*" failures_title = "*==== FAILURES ====*" failures_test_name = "*____ test_function ____*" failures_test_reason = "[XPASS(strict)] The process gets terminated" short_test_summary_title = "*==== short test summary info ====*" short_test_summary = f"{expected_word!s} test_xfail.py::test_function" if expected_lowercase == "xpassed": # XPASS wouldn't have the crash message from # pytest-forked because the crash doesn't happen short_test_summary = " ".join( ( short_test_summary, "The process gets terminated", ) ) reason_string = ( f"reason: The process gets terminated; " f"pytest-forked reason: " f"*:*: running the test CRASHED with signal {sig_num:d}" ) if expected_lowercase == "xfailed" and PYTEST_GTE_7_2: short_test_summary += " - " + reason_string total_summary_line = f"*==== 1 {expected_lowercase!s} in 0.*s* ====*" expected_lines = ( session_start_title, loaded_pytest_plugins, collected_tests_num, expected_progress, ) if expected_word == FAILED_WORD: # XPASS(strict) expected_lines += ( failures_title, failures_test_name, failures_test_reason, ) expected_lines += ( short_test_summary_title, short_test_summary, ) if expected_lowercase == "xpassed" and expected_word == FAILED_WORD: # XPASS(strict) expected_lines += (" " + reason_string,) expected_lines += (total_summary_line,) test_module = testdir.makepyfile( f""" import os import signal import pytest # The current implementation emits RuntimeWarning. pytestmark = pytest.mark.filterwarnings('ignore:pytest-forked xfail') @pytest.mark.xfail( reason='The process gets terminated', strict={is_strict!s}, ) @pytest.mark.forked def test_function(): {test_func_body!s} """ ) pytest_run_result = testdir.runpytest(test_module, "-ra") > pytest_run_result.stdout.fnmatch_lines(expected_lines) E Failed: fnmatch: '*==== test session starts ====*' E with: '============================= test session starts ==============================' E nomatch: 'plugins: forked*' E and: 'platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail2' E fnmatch: 'plugins: forked*' E with: 'plugins: forked-1.6.0' E exact match: 'collected 1 item' E nomatch: 'test_xfail.py x*' E and: '' E fnmatch: 'test_xfail.py x*' E with: 'test_xfail.py x [100%]' E nomatch: '*==== short test summary info ====*' E and: '' E fnmatch: '*==== short test summary info ====*' E with: '=========================== short test summary info ============================' E fnmatch: 'XFAIL test_xfail.py::test_function - reason: The process gets terminated; pytest-forked reason: *:*: running the test CRASHED with signal 15' E with: 'XFAIL test_xfail.py::test_function - reason: The process gets terminated; pytest-forked reason: :-1: running the test CRASHED with signal 15' E nomatch: '*==== 1 xfailed in 0.*s* ====*' E and: '============================== 1 xfailed in 3.36s ==============================' E remains unmatched: '*==== 1 xfailed in 0.*s* ====*' /builddir/build/BUILD/pytest-forked-1.6.0/testing/test_xfail_behavior.py:121: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail2 plugins: forked-1.6.0 collected 1 item test_xfail.py x [100%] =========================== short test summary info ============================ XFAIL test_xfail.py::test_function - reason: The process gets terminated; pytest-forked reason: :-1: running the test CRASHED with signal 15 ============================== 1 xfailed in 3.36s ============================== _________________________ test_xfail[non-strict xpass] _________________________ is_crashing = False, is_strict = False testdir = @pytest.mark.parametrize( ("is_crashing", "is_strict"), ( pytest.param(True, True, id="strict xfail"), pytest.param(False, True, id="strict xpass"), pytest.param(True, False, id="non-strict xfail"), pytest.param(False, False, id="non-strict xpass"), ), ) def test_xfail(is_crashing, is_strict, testdir): """Test xfail/xpass/strict permutations.""" # pylint: disable=possibly-unused-variable sig_num = signal.SIGTERM.numerator test_func_body = ( "os.kill(os.getpid(), signal.SIGTERM)" if is_crashing else "assert True" ) if is_crashing: # marked xfailed and crashing, no matter strict or not expected_letter = "x" # XFAILED expected_lowercase = "xfailed" expected_word = "XFAIL" elif is_strict: # strict and not failing as expected should cause failure expected_letter = "F" # FAILED expected_lowercase = "failed" expected_word = FAILED_WORD elif not is_strict: # non-strict and not failing as expected should cause xpass expected_letter = "X" # XPASS expected_lowercase = "xpassed" expected_word = "XPASS" session_start_title = "*==== test session starts ====*" loaded_pytest_plugins = "plugins: forked*" collected_tests_num = "collected 1 item" expected_progress = f"test_xfail.py {expected_letter!s}*" failures_title = "*==== FAILURES ====*" failures_test_name = "*____ test_function ____*" failures_test_reason = "[XPASS(strict)] The process gets terminated" short_test_summary_title = "*==== short test summary info ====*" short_test_summary = f"{expected_word!s} test_xfail.py::test_function" if expected_lowercase == "xpassed": # XPASS wouldn't have the crash message from # pytest-forked because the crash doesn't happen short_test_summary = " ".join( ( short_test_summary, "The process gets terminated", ) ) reason_string = ( f"reason: The process gets terminated; " f"pytest-forked reason: " f"*:*: running the test CRASHED with signal {sig_num:d}" ) if expected_lowercase == "xfailed" and PYTEST_GTE_7_2: short_test_summary += " - " + reason_string total_summary_line = f"*==== 1 {expected_lowercase!s} in 0.*s* ====*" expected_lines = ( session_start_title, loaded_pytest_plugins, collected_tests_num, expected_progress, ) if expected_word == FAILED_WORD: # XPASS(strict) expected_lines += ( failures_title, failures_test_name, failures_test_reason, ) expected_lines += ( short_test_summary_title, short_test_summary, ) if expected_lowercase == "xpassed" and expected_word == FAILED_WORD: # XPASS(strict) expected_lines += (" " + reason_string,) expected_lines += (total_summary_line,) test_module = testdir.makepyfile( f""" import os import signal import pytest # The current implementation emits RuntimeWarning. pytestmark = pytest.mark.filterwarnings('ignore:pytest-forked xfail') @pytest.mark.xfail( reason='The process gets terminated', strict={is_strict!s}, ) @pytest.mark.forked def test_function(): {test_func_body!s} """ ) pytest_run_result = testdir.runpytest(test_module, "-ra") > pytest_run_result.stdout.fnmatch_lines(expected_lines) E Failed: fnmatch: '*==== test session starts ====*' E with: '============================= test session starts ==============================' E nomatch: 'plugins: forked*' E and: 'platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail3' E fnmatch: 'plugins: forked*' E with: 'plugins: forked-1.6.0' E exact match: 'collected 1 item' E nomatch: 'test_xfail.py X*' E and: '' E fnmatch: 'test_xfail.py X*' E with: 'test_xfail.py X [100%]' E nomatch: '*==== short test summary info ====*' E and: '' E fnmatch: '*==== short test summary info ====*' E with: '=========================== short test summary info ============================' E exact match: 'XPASS test_xfail.py::test_function The process gets terminated' E nomatch: '*==== 1 xpassed in 0.*s* ====*' E and: '============================== 1 xpassed in 3.80s ==============================' E remains unmatched: '*==== 1 xpassed in 0.*s* ====*' /builddir/build/BUILD/pytest-forked-1.6.0/testing/test_xfail_behavior.py:121: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_xfail3 plugins: forked-1.6.0 collected 1 item test_xfail.py X [100%] =========================== short test summary info ============================ XPASS test_xfail.py::test_function The process gets terminated ============================== 1 xpassed in 3.80s ============================== =========================== short test summary info ============================ FAILED testing/test_xfail_behavior.py::test_xfail[strict xfail] - Failed: fnm... FAILED testing/test_xfail_behavior.py::test_xfail[strict xpass] - Failed: fnm... FAILED testing/test_xfail_behavior.py::test_xfail[non-strict xfail] - Failed:... FAILED testing/test_xfail_behavior.py::test_xfail[non-strict xpass] - Failed:... XFAIL testing/test_boxed.py::test_functional_boxed_capturing[sys] - capture cleanup needed XFAIL testing/test_boxed.py::test_functional_boxed_capturing[fd] - capture cleanup needed ============== 4 failed, 4 passed, 2 xfailed in 193.95s (0:03:13) ============== error: Bad exit status from /var/tmp/rpm-tmp.Rck7iY (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Rck7iY (%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-pytest-forked.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-pytest-forked.spec