Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mpi.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-754048-27664/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-mpi.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=1674172800 Wrote: /builddir/build/SRPMS/python-pytest-mpi-0.6-4.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mpi.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-754048-27664/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 -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mpi.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=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zqGVPh + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-mpi-0.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-mpi-0.6.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-mpi-0.6 + /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.TbNmh3 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + 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-mpi-0.6 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -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 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib creating build/lib/pytest_mpi copying src/pytest_mpi/_version.py -> build/lib/pytest_mpi copying src/pytest_mpi/__init__.py -> build/lib/pytest_mpi copying src/pytest_mpi/_helpers.py -> build/lib/pytest_mpi UPDATING build/lib/pytest_mpi/_version.py set build/lib/pytest_mpi/_version.py to '0.6' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.FZZkkf + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch ++ dirname /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + 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-mpi-0.6 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -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 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch --prefix /usr running install /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr creating /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib creating /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi copying build/lib/pytest_mpi/_version.py -> /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi copying build/lib/pytest_mpi/__init__.py -> /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi copying build/lib/pytest_mpi/_helpers.py -> /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi byte-compiling /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi/_version.py to _version.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi/_helpers.py to _helpers.cpython-311.pyc writing byte-compilation script '/tmp/tmp1ma_qhxn.py' /usr/bin/python3 /tmp/tmp1ma_qhxn.py removing /tmp/tmp1ma_qhxn.py running install_egg_info running egg_info creating src/pytest_mpi.egg-info writing src/pytest_mpi.egg-info/PKG-INFO writing dependency_links to src/pytest_mpi.egg-info/dependency_links.txt writing entry points to src/pytest_mpi.egg-info/entry_points.txt writing requirements to src/pytest_mpi.egg-info/requires.txt writing top-level names to src/pytest_mpi.egg-info/top_level.txt writing manifest file 'src/pytest_mpi.egg-info/SOURCES.txt' reading manifest file 'src/pytest_mpi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'known_broken_constraints.txt' warning: no previously-included files found matching 'old_pytest.txt' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no files found matching 'test-requirements.txt' warning: no previously-included files found matching 'TODO' no previously-included directories found matching '**/__pycache__' no previously-included directories found matching '**/*.pyc' no previously-included directories found matching '**/*.swp' no previously-included directories found matching '**/*.swo' warning: no previously-included files found matching 'bors.toml' adding license file 'LICENSE.txt' warning: no previously-included files found matching 'azure-pipelines.yml' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'ci' writing manifest file 'src/pytest_mpi.egg-info/SOURCES.txt' Copying src/pytest_mpi.egg-info to /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages/pytest_mpi-0.6-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.6-4.fc38 --unique-debug-suffix -0.6-4.fc38.noarch --unique-debug-src-base python-pytest-mpi-0.6-4.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pytest-mpi-0.6 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/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-mpi-0.6-4.fc38.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.MZSMe7 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + 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-mpi-0.6 + module load mpi/mpich-riscv64 + '[' -z '' ']' + case "$-" in + __lmod_sh_dbg=x + '[' -n x ']' + set +x Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for Lmod's output Shell debugging restarted + unset __lmod_sh_dbg + return 0 + export PYTHONPATH=/builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages:/usr/lib64/python3.11/site-packages/mpich + PYTHONPATH=/builddir/build/BUILDROOT/python-pytest-mpi-0.6-4.fc38.noarch/usr/lib/python3.11/site-packages:/usr/lib64/python3.11/site-packages/mpich + py.test-3.11 -p pytester --runpytest=subprocess -vv ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/pytest-mpi-0.6 plugins: mpi-0.6 collecting ... collected 13 items docs/markers.rst::line:14,column:1 PASSED [ 7%] docs/usage.rst::line:16,column:1 PASSED [ 15%] docs/usage.rst::line:28,column:1 PASSED [ 23%] tests/test_fixtures.py::test_mpi_file_name FAILED [ 30%] tests/test_fixtures.py::test_mpi_tmpdir FAILED [ 38%] tests/test_fixtures.py::test_mpi_tmp_path FAILED [ 46%] tests/test_markers.py::test_mpi PASSED [ 53%] tests/test_markers.py::test_mpi_with_mpi PASSED [ 61%] tests/test_markers.py::test_mpi_only_mpi PASSED [ 69%] tests/test_markers.py::test_mpi_skip PASSED [ 76%] tests/test_markers.py::test_mpi_skip_under_mpi PASSED [ 84%] tests/test_markers.py::test_mpi_xfail PASSED [ 92%] tests/test_markers.py::test_mpi_xfail_under_mpi PASSED [100%] =================================== FAILURES =================================== ______________________________ test_mpi_file_name ______________________________ self = timeout = 5, stdin = cmdargs = ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0', ...) __tracebackhide__ = True def run( self, *cmdargs: Union[str, "os.PathLike[str]"], timeout: Optional[float] = None, stdin: Union[NotSetType, bytes, IO[Any], int] = CLOSE_STDIN, ) -> RunResult: """Run a command with arguments. Run a process using :py:class:`subprocess.Popen` saving the stdout and stderr. :param cmdargs: The sequence of arguments to pass to :py:class:`subprocess.Popen`, with path-like objects being converted to :py:class:`str` automatically. :param timeout: The period in seconds after which to timeout and raise :py:class:`Pytester.TimeoutExpired`. :param stdin: Optional standard input. - If it is :py:attr:`CLOSE_STDIN` (Default), then this method calls :py:class:`subprocess.Popen` with ``stdin=subprocess.PIPE``, and the standard input is closed immediately after the new command is started. - If it is of type :py:class:`bytes`, these bytes are sent to the standard input of the command. - Otherwise, it is passed through to :py:class:`subprocess.Popen`. For further information in this case, consult the document of the ``stdin`` parameter in :py:class:`subprocess.Popen`. :returns: The result. """ __tracebackhide__ = True cmdargs = tuple(os.fspath(arg) for arg in cmdargs) p1 = self.path.joinpath("stdout") p2 = self.path.joinpath("stderr") print("running:", *cmdargs) print(" in:", Path.cwd()) with p1.open("w", encoding="utf8") as f1, p2.open("w", encoding="utf8") as f2: now = timing.time() popen = self.popen( cmdargs, stdin=stdin, stdout=f1, stderr=f2, close_fds=(sys.platform != "win32"), ) if popen.stdin is not None: popen.stdin.close() def handle_timeout() -> None: __tracebackhide__ = True timeout_message = ( "{seconds} second timeout expired running:" " {command}".format(seconds=timeout, command=cmdargs) ) popen.kill() popen.wait() raise self.TimeoutExpired(timeout_message) if timeout is None: ret = popen.wait() else: try: > ret = popen.wait(timeout) /usr/lib/python3.11/site-packages/_pytest/pytester.py:1452: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 5 def wait(self, timeout=None): """Wait for child process to terminate; returns self.returncode.""" if timeout is not None: endtime = _time() + timeout try: > return self._wait(timeout=timeout) /usr/lib64/python3.11/subprocess.py:1262: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 5 def _wait(self, timeout): """Internal implementation of wait() on POSIX.""" if self.returncode is not None: return self.returncode if timeout is not None: endtime = _time() + timeout # Enter a busy loop if we have a timeout. This busy loop was # cribbed from Lib/threading.py in Thread.wait() at r71065. delay = 0.0005 # 500 us -> initial delay of 1 ms while True: if self._waitpid_lock.acquire(False): try: if self.returncode is not None: break # Another thread waited. (pid, sts) = self._try_wait(os.WNOHANG) assert pid == self.pid or pid == 0 if pid == self.pid: self._handle_exitstatus(sts) break finally: self._waitpid_lock.release() remaining = self._remaining_time(endtime) if remaining <= 0: > raise TimeoutExpired(self.args, timeout) E subprocess.TimeoutExpired: Command '('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0', '--with-mpi')' timed out after 5 seconds /usr/lib64/python3.11/subprocess.py:2005: TimeoutExpired During handling of the above exception, another exception occurred: mpi_testdir = has_mpi4py = True def test_mpi_file_name(mpi_testdir, has_mpi4py): mpi_testdir.makepyfile(MPI_FILE_NAME_TEST_CODE) > result = mpi_testdir.runpytest("--with-mpi", timeout=5) /builddir/build/BUILD/pytest-mpi-0.6/tests/test_fixtures.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/pytest-mpi-0.6/tests/conftest.py:62: in runpytest return self._run_pytester(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , timeout = 5 mpi_procs = 2, max_retries = 5 args = ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0', ...) def _run_pytester(self, *args, timeout=60, mpi_procs=2, max_retries=5): retries = 0 p = _to_pathlib(py.path.local.make_numbered_dir( prefix="runpytest-", keep=None, rootdir=_to_py_path(self._pytester.path) )) args = ("--basetemp=%s" % p,) + args plugins = [x for x in self._pytester.plugins if isinstance(x, str)] if plugins: args = ("-p", plugins[0]) + args args = MPI_ARGS + (str(mpi_procs),) + PYTEST_ARGS + args while retries < max_retries: try: > return self._pytester.run(*args, timeout=timeout) E _pytest.pytester.Pytester.TimeoutExpired: 5 second timeout expired running: ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0', '--with-mpi') /builddir/build/BUILD/pytest-mpi-0.6/tests/conftest.py:97: TimeoutExpired ----------------------------- Captured stdout call ----------------------------- running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_file_name0 _______________________________ test_mpi_tmpdir ________________________________ self = timeout = 5, stdin = cmdargs = ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0', ...) __tracebackhide__ = True def run( self, *cmdargs: Union[str, "os.PathLike[str]"], timeout: Optional[float] = None, stdin: Union[NotSetType, bytes, IO[Any], int] = CLOSE_STDIN, ) -> RunResult: """Run a command with arguments. Run a process using :py:class:`subprocess.Popen` saving the stdout and stderr. :param cmdargs: The sequence of arguments to pass to :py:class:`subprocess.Popen`, with path-like objects being converted to :py:class:`str` automatically. :param timeout: The period in seconds after which to timeout and raise :py:class:`Pytester.TimeoutExpired`. :param stdin: Optional standard input. - If it is :py:attr:`CLOSE_STDIN` (Default), then this method calls :py:class:`subprocess.Popen` with ``stdin=subprocess.PIPE``, and the standard input is closed immediately after the new command is started. - If it is of type :py:class:`bytes`, these bytes are sent to the standard input of the command. - Otherwise, it is passed through to :py:class:`subprocess.Popen`. For further information in this case, consult the document of the ``stdin`` parameter in :py:class:`subprocess.Popen`. :returns: The result. """ __tracebackhide__ = True cmdargs = tuple(os.fspath(arg) for arg in cmdargs) p1 = self.path.joinpath("stdout") p2 = self.path.joinpath("stderr") print("running:", *cmdargs) print(" in:", Path.cwd()) with p1.open("w", encoding="utf8") as f1, p2.open("w", encoding="utf8") as f2: now = timing.time() popen = self.popen( cmdargs, stdin=stdin, stdout=f1, stderr=f2, close_fds=(sys.platform != "win32"), ) if popen.stdin is not None: popen.stdin.close() def handle_timeout() -> None: __tracebackhide__ = True timeout_message = ( "{seconds} second timeout expired running:" " {command}".format(seconds=timeout, command=cmdargs) ) popen.kill() popen.wait() raise self.TimeoutExpired(timeout_message) if timeout is None: ret = popen.wait() else: try: > ret = popen.wait(timeout) /usr/lib/python3.11/site-packages/_pytest/pytester.py:1452: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 5 def wait(self, timeout=None): """Wait for child process to terminate; returns self.returncode.""" if timeout is not None: endtime = _time() + timeout try: > return self._wait(timeout=timeout) /usr/lib64/python3.11/subprocess.py:1262: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 5 def _wait(self, timeout): """Internal implementation of wait() on POSIX.""" if self.returncode is not None: return self.returncode if timeout is not None: endtime = _time() + timeout # Enter a busy loop if we have a timeout. This busy loop was # cribbed from Lib/threading.py in Thread.wait() at r71065. delay = 0.0005 # 500 us -> initial delay of 1 ms while True: if self._waitpid_lock.acquire(False): try: if self.returncode is not None: break # Another thread waited. (pid, sts) = self._try_wait(os.WNOHANG) assert pid == self.pid or pid == 0 if pid == self.pid: self._handle_exitstatus(sts) break finally: self._waitpid_lock.release() remaining = self._remaining_time(endtime) if remaining <= 0: > raise TimeoutExpired(self.args, timeout) E subprocess.TimeoutExpired: Command '('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0', '--with-mpi')' timed out after 5 seconds /usr/lib64/python3.11/subprocess.py:2005: TimeoutExpired During handling of the above exception, another exception occurred: mpi_testdir = has_mpi4py = True def test_mpi_tmpdir(mpi_testdir, has_mpi4py): mpi_testdir.makepyfile(MPI_TMPDIR_TEST_CODE) > result = mpi_testdir.runpytest("--with-mpi", timeout=5) /builddir/build/BUILD/pytest-mpi-0.6/tests/test_fixtures.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/pytest-mpi-0.6/tests/conftest.py:62: in runpytest return self._run_pytester(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , timeout = 5 mpi_procs = 2, max_retries = 5 args = ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0', ...) def _run_pytester(self, *args, timeout=60, mpi_procs=2, max_retries=5): retries = 0 p = _to_pathlib(py.path.local.make_numbered_dir( prefix="runpytest-", keep=None, rootdir=_to_py_path(self._pytester.path) )) args = ("--basetemp=%s" % p,) + args plugins = [x for x in self._pytester.plugins if isinstance(x, str)] if plugins: args = ("-p", plugins[0]) + args args = MPI_ARGS + (str(mpi_procs),) + PYTEST_ARGS + args while retries < max_retries: try: > return self._pytester.run(*args, timeout=timeout) E _pytest.pytester.Pytester.TimeoutExpired: 5 second timeout expired running: ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0', '--with-mpi') /builddir/build/BUILD/pytest-mpi-0.6/tests/conftest.py:97: TimeoutExpired ----------------------------- Captured stdout call ----------------------------- running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmpdir0 ______________________________ test_mpi_tmp_path _______________________________ self = timeout = 5, stdin = cmdargs = ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0', ...) __tracebackhide__ = True def run( self, *cmdargs: Union[str, "os.PathLike[str]"], timeout: Optional[float] = None, stdin: Union[NotSetType, bytes, IO[Any], int] = CLOSE_STDIN, ) -> RunResult: """Run a command with arguments. Run a process using :py:class:`subprocess.Popen` saving the stdout and stderr. :param cmdargs: The sequence of arguments to pass to :py:class:`subprocess.Popen`, with path-like objects being converted to :py:class:`str` automatically. :param timeout: The period in seconds after which to timeout and raise :py:class:`Pytester.TimeoutExpired`. :param stdin: Optional standard input. - If it is :py:attr:`CLOSE_STDIN` (Default), then this method calls :py:class:`subprocess.Popen` with ``stdin=subprocess.PIPE``, and the standard input is closed immediately after the new command is started. - If it is of type :py:class:`bytes`, these bytes are sent to the standard input of the command. - Otherwise, it is passed through to :py:class:`subprocess.Popen`. For further information in this case, consult the document of the ``stdin`` parameter in :py:class:`subprocess.Popen`. :returns: The result. """ __tracebackhide__ = True cmdargs = tuple(os.fspath(arg) for arg in cmdargs) p1 = self.path.joinpath("stdout") p2 = self.path.joinpath("stderr") print("running:", *cmdargs) print(" in:", Path.cwd()) with p1.open("w", encoding="utf8") as f1, p2.open("w", encoding="utf8") as f2: now = timing.time() popen = self.popen( cmdargs, stdin=stdin, stdout=f1, stderr=f2, close_fds=(sys.platform != "win32"), ) if popen.stdin is not None: popen.stdin.close() def handle_timeout() -> None: __tracebackhide__ = True timeout_message = ( "{seconds} second timeout expired running:" " {command}".format(seconds=timeout, command=cmdargs) ) popen.kill() popen.wait() raise self.TimeoutExpired(timeout_message) if timeout is None: ret = popen.wait() else: try: > ret = popen.wait(timeout) /usr/lib/python3.11/site-packages/_pytest/pytester.py:1452: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 5 def wait(self, timeout=None): """Wait for child process to terminate; returns self.returncode.""" if timeout is not None: endtime = _time() + timeout try: > return self._wait(timeout=timeout) /usr/lib64/python3.11/subprocess.py:1262: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 5 def _wait(self, timeout): """Internal implementation of wait() on POSIX.""" if self.returncode is not None: return self.returncode if timeout is not None: endtime = _time() + timeout # Enter a busy loop if we have a timeout. This busy loop was # cribbed from Lib/threading.py in Thread.wait() at r71065. delay = 0.0005 # 500 us -> initial delay of 1 ms while True: if self._waitpid_lock.acquire(False): try: if self.returncode is not None: break # Another thread waited. (pid, sts) = self._try_wait(os.WNOHANG) assert pid == self.pid or pid == 0 if pid == self.pid: self._handle_exitstatus(sts) break finally: self._waitpid_lock.release() remaining = self._remaining_time(endtime) if remaining <= 0: > raise TimeoutExpired(self.args, timeout) E subprocess.TimeoutExpired: Command '('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0', '--with-mpi')' timed out after 5 seconds /usr/lib64/python3.11/subprocess.py:2005: TimeoutExpired During handling of the above exception, another exception occurred: mpi_testdir = has_mpi4py = True def test_mpi_tmp_path(mpi_testdir, has_mpi4py): mpi_testdir.makepyfile(MPI_TMP_PATH_TEST_CODE) > result = mpi_testdir.runpytest("--with-mpi", timeout=5) /builddir/build/BUILD/pytest-mpi-0.6/tests/test_fixtures.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/pytest-mpi-0.6/tests/conftest.py:62: in runpytest return self._run_pytester(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , timeout = 5 mpi_procs = 2, max_retries = 5 args = ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0', ...) def _run_pytester(self, *args, timeout=60, mpi_procs=2, max_retries=5): retries = 0 p = _to_pathlib(py.path.local.make_numbered_dir( prefix="runpytest-", keep=None, rootdir=_to_py_path(self._pytester.path) )) args = ("--basetemp=%s" % p,) + args plugins = [x for x in self._pytester.plugins if isinstance(x, str)] if plugins: args = ("-p", plugins[0]) + args args = MPI_ARGS + (str(mpi_procs),) + PYTEST_ARGS + args while retries < max_retries: try: > return self._pytester.run(*args, timeout=timeout) E _pytest.pytester.Pytester.TimeoutExpired: 5 second timeout expired running: ('mpirun', '-n', '2', '/usr/bin/python3', '-mpytest', '--basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0', '--with-mpi') /builddir/build/BUILD/pytest-mpi-0.6/tests/conftest.py:97: TimeoutExpired ----------------------------- Captured stdout call ----------------------------- running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0 running: mpirun -n 2 /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0/runpytest-0 --with-mpi in: /tmp/pytest-of-mockbuild/pytest-0/test_mpi_tmp_path0 =========================== short test summary info ============================ FAILED tests/test_fixtures.py::test_mpi_file_name - _pytest.pytester.Pytester... FAILED tests/test_fixtures.py::test_mpi_tmpdir - _pytest.pytester.Pytester.Ti... FAILED tests/test_fixtures.py::test_mpi_tmp_path - _pytest.pytester.Pytester.... =================== 3 failed, 10 passed in 138.77s (0:02:18) =================== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.MZSMe7 (%check) Bad exit status from /var/tmp/rpm-tmp.MZSMe7 (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mpi.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 598, 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 -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mpi.spec