Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 612590 Details for
Bug 708652
dev-python/pytest-services-2.0.1: test_memcached, test_xvfb fail (missing deps?)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 31.81 KB, created by
Rolf Eike Beer
on 2020-02-07 19:01:30 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Rolf Eike Beer
Created:
2020-02-07 19:01:30 UTC
Size:
31.81 KB
patch
obsolete
>[32;01m * [39;49;00mPackage: dev-python/pytest-services-2.0.1 >[32;01m * [39;49;00mRepository: gentoo >[32;01m * [39;49;00mMaintainer: python@gentoo.org >[32;01m * [39;49;00mUSE: elibc_glibc hppa kernel_linux python_targets_python3_6 test userland_GNU >[32;01m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-services-2.0.1.tar.gz to /var/tmp/portage/dev-python/pytest-services-2.0.1/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-services-2.0.1/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1 ... > [32;01m*[0m Applying pytest-services-2.0.1-no-mysql.patch ... >patching file tests/test_plugin.py >[A[252C [34;01m[ [32;01mok[34;01m ][0m > [32;01m*[0m Applying pytest-services-2.0.1-lockdir.patch ... >patching file pytest_services/folders.py >[A[252C [34;01m[ [32;01mok[34;01m ][0m >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1 ... > [32;01m*[0m python3_6: running distutils-r1_run_phase distutils-r1_python_compile > [33;01m*[0m DISTUTILS_USE_SETUPTOOLS value is probably incorrect > [33;01m*[0m value: DISTUTILS_USE_SETUPTOOLS=bdepend (default?) > [33;01m*[0m expected: DISTUTILS_USE_SETUPTOOLS=rdepend >python3.6 setup.py build -j 4 >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/plugin.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/django_settings.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/process.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/service.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/memcached.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/__init__.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/mysql.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/locks.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/folders.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/log.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >copying pytest_services/xvfb.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services >/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'extras' > warnings.warn(msg) >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-services-2.0.1 > [32;01m*[0m python3_6: running distutils-r1_run_phase python_test >python3.6 setup.py install --home=/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test --install-lib=/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/lib --install-scripts=/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/scripts >running install >running bdist_egg >running egg_info >creating pytest_services.egg-info >writing pytest_services.egg-info/PKG-INFO >writing dependency_links to pytest_services.egg-info/dependency_links.txt >writing entry points to pytest_services.egg-info/entry_points.txt >writing requirements to pytest_services.egg-info/requires.txt >writing top-level names to pytest_services.egg-info/top_level.txt >writing manifest file 'pytest_services.egg-info/SOURCES.txt' >reading manifest file 'pytest_services.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_services.egg-info/SOURCES.txt' >installing library code to /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg >running install_lib >running build_py >/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'extras' > warnings.warn(msg) >warning: build_py: byte-compiling is disabled, skipping. > >creating /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64 >creating /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg >creating /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/plugin.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/django_settings.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/process.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/service.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/memcached.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/__init__.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/mysql.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/locks.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/folders.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/log.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >copying /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/lib/pytest_services/xvfb.py -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/pytest_services >warning: install_lib: byte-compiling is disabled, skipping. > >creating /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/EGG-INFO >copying pytest_services.egg-info/PKG-INFO -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/EGG-INFO >copying pytest_services.egg-info/SOURCES.txt -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/EGG-INFO >copying pytest_services.egg-info/dependency_links.txt -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/EGG-INFO >copying pytest_services.egg-info/entry_points.txt -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/EGG-INFO >copying pytest_services.egg-info/requires.txt -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/EGG-INFO >copying pytest_services.egg-info/top_level.txt -> /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg/EGG-INFO >zip_safe flag not set; analyzing archive contents... >creating /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/dist >creating '/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/dist/pytest_services-2.0.1-py3.6.egg' and adding '/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg' to it >removing '/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/bdist.linux-parisc64/egg' (and everything under it) >Creating /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/lib/site.py >Processing pytest_services-2.0.1-py3.6.egg >Copying pytest_services-2.0.1-py3.6.egg to /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/lib >Adding pytest-services 2.0.1 to easy-install.pth file > >Installed /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/lib/pytest_services-2.0.1-py3.6.egg >Processing dependencies for pytest-services==2.0.1 >Searching for zc.lockfile==2.0 >Best match: zc.lockfile 2.0 >Adding zc.lockfile 2.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for pytest==4.6.9 >Best match: pytest 4.6.9 >Adding pytest 4.6.9 to easy-install.pth file >Installing py.test script to /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/scripts >Installing pytest script to /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/scripts > >Using /usr/lib/python3.6/site-packages >Searching for psutil==5.6.7 >Best match: psutil 5.6.7 >Adding psutil 5.6.7 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for requests==2.22.0 >Best match: requests 2.22.0 >Adding requests 2.22.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for setuptools==40.6.3 >Best match: setuptools 40.6.3 >Adding setuptools 40.6.3 to easy-install.pth file >Installing easy_install script to /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/scripts > >Using /usr/lib/python3.6/site-packages >Searching for more-itertools==5.0.0 >Best match: more-itertools 5.0.0 >Adding more-itertools 5.0.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for importlib-metadata==1.4.0 >Best match: importlib-metadata 1.4.0 >Adding importlib-metadata 1.4.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for wcwidth==0.1.7 >Best match: wcwidth 0.1.7 >Adding wcwidth 0.1.7 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for pluggy==0.13.1 >Best match: pluggy 0.13.1 >Adding pluggy 0.13.1 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for atomicwrites==1.3.0 >Best match: atomicwrites 1.3.0 >Adding atomicwrites 1.3.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for attrs==19.3.0 >Best match: attrs 19.3.0 >Adding attrs 19.3.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for packaging==20.1 >Best match: packaging 20.1 >Adding packaging 20.1 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for six==1.11.0 >Best match: six 1.11.0 >Adding six 1.11.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for py==1.8.0 >Best match: py 1.8.0 >Adding py 1.8.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for certifi==2018.4.16 >Best match: certifi 2018.4.16 >Adding certifi 2018.4.16 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for urllib3==1.24.1 >Best match: urllib3 1.24.1 >Adding urllib3 1.24.1 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for idna==2.5 >Best match: idna 2.5 >Adding idna 2.5 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Searching for chardet==3.0.4 >Best match: chardet 3.0.4 >Adding chardet 3.0.4 to easy-install.pth file >Installing chardetect script to /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1-python3_6/test/scripts > >Using /usr/lib/python3.6/site-packages >Searching for zipp==1.0.0 >Best match: zipp 1.0.0 >Adding zipp 1.0.0 to easy-install.pth file > >Using /usr/lib/python3.6/site-packages >Finished processing dependencies for pytest-services==2.0.1 >======================================================================================================================= test session starts ======================================================================================================================== >platform linux -- Python 3.6.10, pytest-4.6.9, py-1.8.0, pluggy-0.13.1 -- /usr/bin/python3.6 >cachedir: .pytest_cache >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1/.hypothesis/examples') >rootdir: /var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1, inifile: tox.ini >plugins: services-2.0.1, forked-1.1.3, virtualenv-1.7.0, hypothesis-4.57.1, shutil-1.7.0, cov-2.6.1, httpbin-1.0.0, mock-1.10.0, expect-1.1.0, xprocess-0.12.1, flaky-3.6.1, xdist-1.28.0 >collecting ... collected 5 items > >tests/test_plugin.py::test_memcached ERROR [ 20%] >tests/test_plugin.py::test_xvfb ERROR [ 40%] >tests/test_plugin.py::test_port_getter PASSED [ 60%] >tests/test_plugin.py::test_display_getter PASSED [ 80%] >tests/test_plugin.py::test_temp_dir PASSED [100%] > >============================================================================================================================== ERRORS ============================================================================================================================== >_________________________________________________________________________________________________________________ ERROR at setup of test_memcached _________________________________________________________________________________________________________________ > >request = <SubRequest 'memcached' for <Function test_memcached>>, run_services = True, memcached_socket = '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/sr-56596491a9a04e56ad0de983f17bc114-local/tmp/run/memcached.sock' >watcher_getter = <function watcher_getter.<locals>.watcher_getter_function at 0xf74be930> > > @pytest.fixture(scope='session') > def memcached(request, run_services, memcached_socket, watcher_getter): > """The memcached instance which is ready to be used by the tests.""" > if run_services: > return watcher_getter( > name='memcached', > arguments=['-s', memcached_socket], > checker=lambda: os.path.exists(memcached_socket), >> request=request, > ) > >memcached_socket = '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/sr-56596491a9a04e56ad0de983f17bc114-local/tmp/run/memcached.sock' >request = <SubRequest 'memcached' for <Function test_memcached>> >run_services = True >watcher_getter = <function watcher_getter.<locals>.watcher_getter_function at 0xf74be930> > >../pytest-services-2.0.1-python3_6/lib/pytest_services/memcached.py:21: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >name = 'memcached', arguments = ['-s', '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/sr-56596491a9a04e56ad0de983f17bc114-local/tmp/run/memcached.sock'], kwargs = None, timeout = 20, checker = <function memcached.<locals>.<lambda> at 0xf74be978> >request = <SubRequest 'memcached' for <Function test_memcached>> > > def watcher_getter_function(name, arguments=None, kwargs=None, timeout=20, checker=None, request=None): > if request is None: > warnings.warn('Omitting the `request` parameter will result in an unstable order of finalizers.') > request = orig_request > executable = find_executable(name) > assert executable, 'You have to install {0} executable.'.format(name) > > cmd = [name] + (arguments or []) > > services_log.debug('Starting {0}: {1}'.format(name, arguments)) > > watcher = subprocess.Popen( > cmd, **(kwargs or {})) > > def finalize(): > try: > watcher.terminate() > except OSError: > pass > if watcher.returncode is None: > try: > watcher.communicate(timeout=timeout / 2) > except subprocess.TimeoutExpired: > watcher.kill() > watcher.communicate(timeout=timeout / 2) > request.addfinalizer(finalize) > > # Wait for the service to start. > times = 0 > while not checker(): > if watcher.returncode is not None: > raise Exception("Error running {0}".format(name)) > > if times > timeout: >> raise Exception('The {0} service checked did not succeed!'.format(name)) >E Exception: The memcached service checked did not succeed! > >arguments = ['-s', > '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/sr-56596491a9a04e56ad0de983f17bc114-local/tmp/run/memcached.sock'] >checker = <function memcached.<locals>.<lambda> at 0xf74be978> >cmd = ['memcached', > '-s', > '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/sr-56596491a9a04e56ad0de983f17bc114-local/tmp/run/memcached.sock'] >executable = '/usr/bin/memcached' >finalize = <function watcher_getter.<locals>.watcher_getter_function.<locals>.finalize at 0xf74be9c0> >kwargs = None >name = 'memcached' >orig_request = <SubRequest 'watcher_getter' for <Function test_memcached>> >request = <SubRequest 'memcached' for <Function test_memcached>> >services_log = <Logger [local] pytest_services.log (DEBUG)> >timeout = 20 >times = 21 >watcher = <subprocess.Popen object at 0xf74f8c70> > >../pytest-services-2.0.1-python3_6/lib/pytest_services/service.py:96: Exception >___________________________________________________________________________________________________________________ ERROR at setup of test_xvfb ____________________________________________________________________________________________________________________ > >request = <SubRequest 'xvfb' for <Function test_xvfb>>, run_services = True, xvfb_display = 100, lock_dir = '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/service-locks', xvfb_resolution = (1366, 768, 8) >watcher_getter = <function watcher_getter.<locals>.watcher_getter_function at 0xf74be930> > > @pytest.fixture(scope='session') > def xvfb(request, run_services, xvfb_display, lock_dir, xvfb_resolution, watcher_getter): > """The Xvfb process.""" > if request.config.option.display or not run_services: > # display is passed, no action required > return > >> if xvfb_supports_listen(): > >lock_dir = '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/service-locks' >request = <SubRequest 'xvfb' for <Function test_xvfb>> >run_services = True >watcher_getter = <function watcher_getter.<locals>.watcher_getter_function at 0xf74be930> >xvfb_display = 100 >xvfb_resolution = (1366, 768, 8) > >../pytest-services-2.0.1-python3_6/lib/pytest_services/xvfb.py:67: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../pytest-services-2.0.1-python3_6/lib/pytest_services/xvfb.py:22: in xvfb_supports_listen > stderr=subprocess.PIPE, >/usr/lib/python3.6/subprocess.py:729: in __init__ > restore_signals, start_new_session) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <subprocess.Popen object at 0xf74f5c70>, args = ['Xvfb', '-listen', 'TCP', '-__sentinel_parameter__'], executable = b'Xvfb', preexec_fn = None, close_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False >p2cread = -1, p2cwrite = -1, c2pread = 10, c2pwrite = 11, errread = 12, errwrite = 13, restore_signals = True, start_new_session = False > > def _execute_child(self, args, executable, preexec_fn, close_fds, > pass_fds, cwd, env, > startupinfo, creationflags, shell, > p2cread, p2cwrite, > c2pread, c2pwrite, > errread, errwrite, > restore_signals, start_new_session): > """Execute program (POSIX version)""" > > if isinstance(args, (str, bytes)): > args = [args] > else: > args = list(args) > > if shell: > args = ["/bin/sh", "-c"] + args > if executable: > args[0] = executable > > if executable is None: > executable = args[0] > orig_executable = executable > > # For transferring possible exec failure from child to parent. > # Data format: "exception name:hex errno:description" > # Pickle is not used; it is complex and involves memory allocation. > errpipe_read, errpipe_write = os.pipe() > # errpipe_write must not be in the standard io 0, 1, or 2 fd range. > low_fds_to_close = [] > while errpipe_write < 3: > low_fds_to_close.append(errpipe_write) > errpipe_write = os.dup(errpipe_write) > for low_fd in low_fds_to_close: > os.close(low_fd) > try: > try: > # We must avoid complex work that could involve > # malloc or free in the child process to avoid > # potential deadlocks, thus we do all this here. > # and pass it to fork_exec() > > if env is not None: > env_list = [] > for k, v in env.items(): > k = os.fsencode(k) > if b'=' in k: > raise ValueError("illegal environment variable name") > env_list.append(k + b'=' + os.fsencode(v)) > else: > env_list = None # Use execv instead of execve. > executable = os.fsencode(executable) > if os.path.dirname(executable): > executable_list = (executable,) > else: > # This matches the behavior of os._execvpe(). > executable_list = tuple( > os.path.join(os.fsencode(dir), executable) > for dir in os.get_exec_path(env)) > fds_to_keep = set(pass_fds) > fds_to_keep.add(errpipe_write) > self.pid = _posixsubprocess.fork_exec( > args, executable_list, > close_fds, tuple(sorted(map(int, fds_to_keep))), > cwd, env_list, > p2cread, p2cwrite, c2pread, c2pwrite, > errread, errwrite, > errpipe_read, errpipe_write, > restore_signals, start_new_session, preexec_fn) > self._child_created = True > finally: > # be sure the FD is closed no matter what > os.close(errpipe_write) > > # self._devnull is not always defined. > devnull_fd = getattr(self, '_devnull', None) > if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: > os.close(p2cread) > if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: > os.close(c2pwrite) > if errwrite != -1 and errread != -1 and errwrite != devnull_fd: > os.close(errwrite) > if devnull_fd is not None: > os.close(devnull_fd) > # Prevent a double close of these fds from __init__ on error. > self._closed_child_pipe_fds = True > > # Wait for exec to fail or succeed; possibly raising an > # exception (limited in size) > errpipe_data = bytearray() > while True: > part = os.read(errpipe_read, 50000) > errpipe_data += part > if not part or len(errpipe_data) > 50000: > break > finally: > # be sure the FD is closed no matter what > os.close(errpipe_read) > > if errpipe_data: > try: > pid, sts = os.waitpid(self.pid, 0) > if pid == self.pid: > self._handle_exitstatus(sts) > else: > self.returncode = sys.maxsize > except ChildProcessError: > pass > > try: > exception_name, hex_errno, err_msg = ( > errpipe_data.split(b':', 2)) > # The encoding here should match the encoding > # written in by the subprocess implementations > # like _posixsubprocess > err_msg = err_msg.decode() > except ValueError: > exception_name = b'SubprocessError' > hex_errno = b'0' > err_msg = 'Bad exception data from child: {!r}'.format( > bytes(errpipe_data)) > child_exception_type = getattr( > builtins, exception_name.decode('ascii'), > SubprocessError) > if issubclass(child_exception_type, OSError) and hex_errno: > errno_num = int(hex_errno, 16) > child_exec_never_called = (err_msg == "noexec") > if child_exec_never_called: > err_msg = "" > # The error must be from chdir(cwd). > err_filename = cwd > else: > err_filename = orig_executable > if errno_num != 0: > err_msg = os.strerror(errno_num) > if errno_num == errno.ENOENT: > err_msg += ': ' + repr(err_filename) >> raise child_exception_type(errno_num, err_msg, err_filename) >E FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb': 'Xvfb' > >args = ['Xvfb', '-listen', 'TCP', '-__sentinel_parameter__'] >c2pread = 10 >c2pwrite = 11 >child_exception_type = <class 'OSError'> >child_exec_never_called = False >close_fds = True >creationflags = 0 >cwd = None >devnull_fd = None >env = None >env_list = None >err_filename = 'Xvfb' >err_msg = "No such file or directory: 'Xvfb'" >errno_num = 2 >errpipe_data = bytearray(b'OSError:2:') >errpipe_read = 14 >errpipe_write = 15 >errread = 12 >errwrite = 13 >exception_name = bytearray(b'OSError') >executable = b'Xvfb' >executable_list = (b'/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/python3.6/bin/Xvfb', > b'/usr/lib/portage/python3.6/ebuild-helpers/xattr/Xvfb', > b'/usr/lib/portage/python3.6/ebuild-helpers/Xvfb', > b'/usr/hppa2.0-unknown-linux-gnu/gcc-bin/7.3.0/Xvfb', > b'/usr/local/sbin/Xvfb', > b'/usr/local/bin/Xvfb', > b'/usr/sbin/Xvfb', > b'/usr/bin/Xvfb', > b'/sbin/Xvfb', > b'/bin/Xvfb', > b'/opt/bin/Xvfb') >fds_to_keep = {15} >hex_errno = bytearray(b'2') >low_fds_to_close = [] >orig_executable = 'Xvfb' >p2cread = -1 >p2cwrite = -1 >part = b'' >pass_fds = () >pid = 95 >preexec_fn = None >restore_signals = True >self = <subprocess.Popen object at 0xf74f5c70> >shell = False >start_new_session = False >startupinfo = None >sts = 65280 > >/usr/lib/python3.6/subprocess.py:1364: FileNotFoundError >================================================================================================================ 3 passed, 2 error in 22.67 seconds ================================================================================================================ > [31;01m*[0m ERROR: dev-python/pytest-services-2.0.1::gentoo failed (test phase): > [31;01m*[0m Tests failed under python3.6 > [31;01m*[0m > [31;01m*[0m Call stack: > [31;01m*[0m ebuild.sh, line 125: Called src_test > [31;01m*[0m environment, line 2867: Called distutils-r1_src_test > [31;01m*[0m environment, line 1026: Called _distutils-r1_run_foreach_impl 'python_test' > [31;01m*[0m environment, line 410: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 2407: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 1792: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 1790: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > [31;01m*[0m environment, line 673: Called distutils-r1_run_phase 'python_test' > [31;01m*[0m environment, line 957: Called python_test > [31;01m*[0m environment, line 2769: Called die > [31;01m*[0m The specific snippet of code: > [31;01m*[0m pytest -vv tests || die "Tests failed under ${EPYTHON}" > [31;01m*[0m > [31;01m*[0m If you need support, post the output of `emerge --info '=dev-python/pytest-services-2.0.1::gentoo'`, > [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-python/pytest-services-2.0.1::gentoo'`. > [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/build.log'. > [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-services-2.0.1/temp/environment'. > [31;01m*[0m Working directory: '/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1' > [31;01m*[0m S: '/var/tmp/portage/dev-python/pytest-services-2.0.1/work/pytest-services-2.0.1'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 708652
: 612590