Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/fedfind.spec'], chrootPath='/var/lib/mock/epel7-build-15478933-1115109/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=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/fedfind.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 BUILDSTDERR: sh: /usr/bin/python2: No such file or directory Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/fedfind-4.2.1-2.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/fedfind.spec'], chrootPath='/var/lib/mock/epel7-build-15478933-1115109/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=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/fedfind.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JQJIXU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fedfind-4.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/fedfind-4.2.1.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd fedfind-4.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf /builddir/build/BUILD/python3-fedfind-4.2.1-2.el7 + cp -a . /builddir/build/BUILD/python3-fedfind-4.2.1-2.el7 + find /builddir/build/BUILD/python3-fedfind-4.2.1-2.el7 -name '*.py' + xargs sed -i '1s|^#!.*python2|#!/usr/bin/python3.6|' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ULDvCt + umask 022 + cd /builddir/build/BUILD + cd fedfind-4.2.1 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/fedfind copying fedfind/release.py -> build/lib/fedfind copying fedfind/cli.py -> build/lib/fedfind copying fedfind/const.py -> build/lib/fedfind copying fedfind/exceptions.py -> build/lib/fedfind copying fedfind/helpers.py -> build/lib/fedfind copying fedfind/__init__.py -> build/lib/fedfind + sleep 1 + pushd /builddir/build/BUILD/python3-fedfind-4.2.1-2.el7 ~/build/BUILD/python3-fedfind-4.2.1-2.el7 ~/build/BUILD/fedfind-4.2.1 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python3.6 setup.py build '--executable=/usr/bin/python3.6 -s' running build running build_py creating build creating build/lib creating build/lib/fedfind copying fedfind/release.py -> build/lib/fedfind copying fedfind/cli.py -> build/lib/fedfind copying fedfind/const.py -> build/lib/fedfind copying fedfind/exceptions.py -> build/lib/fedfind copying fedfind/helpers.py -> build/lib/fedfind copying fedfind/__init__.py -> build/lib/fedfind + sleep 1 ~/build/BUILD/fedfind-4.2.1 + popd + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.m2oAb8 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch + cd fedfind-4.2.1 + rm -rf /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind copying build/lib/fedfind/release.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind copying build/lib/fedfind/cli.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind copying build/lib/fedfind/const.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind copying build/lib/fedfind/exceptions.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind copying build/lib/fedfind/helpers.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind copying build/lib/fedfind/__init__.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind/release.py to release.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind/cli.py to cli.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind/const.py to const.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind/exceptions.py to exceptions.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind/helpers.py to helpers.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpZURctn.py' /usr/bin/python2 -O /tmp/tmpZURctn.py removing /tmp/tmpZURctn.py running install_egg_info running egg_info writing requirements to fedfind.egg-info/requires.txt writing fedfind.egg-info/PKG-INFO writing top-level names to fedfind.egg-info/top_level.txt writing dependency_links to fedfind.egg-info/dependency_links.txt writing entry points to fedfind.egg-info/entry_points.txt reading manifest file 'fedfind.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'fedfind.egg-info/SOURCES.txt' Copying fedfind.egg-info to /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7/site-packages/fedfind-4.2.1-py2.7.egg-info running install_scripts Installing fedfind script to /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/bin + pushd /builddir/build/BUILD/python3-fedfind-4.2.1-2.el7 ~/build/BUILD/python3-fedfind-4.2.1-2.el7 ~/build/BUILD/fedfind-4.2.1 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python3.6 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6 creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages creating /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind copying build/lib/fedfind/release.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind copying build/lib/fedfind/cli.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind copying build/lib/fedfind/const.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind copying build/lib/fedfind/exceptions.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind copying build/lib/fedfind/helpers.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind copying build/lib/fedfind/__init__.py -> /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind/release.py to release.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind/cli.py to cli.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind/const.py to const.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind/exceptions.py to exceptions.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind/helpers.py to helpers.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind/__init__.py to __init__.cpython-36.pyc writing byte-compilation script '/tmp/tmp9njxmuir.py' /usr/bin/python3.6 /tmp/tmp9njxmuir.py removing /tmp/tmp9njxmuir.py running install_egg_info running egg_info writing fedfind.egg-info/PKG-INFO writing dependency_links to fedfind.egg-info/dependency_links.txt writing entry points to fedfind.egg-info/entry_points.txt writing requirements to fedfind.egg-info/requires.txt writing top-level names to fedfind.egg-info/top_level.txt reading manifest file 'fedfind.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'fedfind.egg-info/SOURCES.txt' Copying fedfind.egg-info to /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6/site-packages/fedfind-4.2.1-py3.6.egg-info running install_scripts Installing fedfind script to /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/bin ~/build/BUILD/fedfind-4.2.1 + popd + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/fedfind-4.2.1 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. BUILDSTDERR: find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/fedfind-4.2.1-2.el7.noarch/usr/lib/python3.6 using /usr/bin/python3.6 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.jQSbeP + umask 022 + cd /builddir/build/BUILD + cd fedfind-4.2.1 + /usr/bin/python2 setup.py test running test running egg_info writing requirements to fedfind.egg-info/requires.txt writing fedfind.egg-info/PKG-INFO writing top-level names to fedfind.egg-info/top_level.txt writing dependency_links to fedfind.egg-info/dependency_links.txt writing entry points to fedfind.egg-info/entry_points.txt reading manifest file 'fedfind.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'fedfind.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- py-1.4.32 -- pytest-2.7.0 rootdir: /builddir/build/BUILD/fedfind-4.2.1, inifile: collected 131 items tests/test_helpers.py ............................................................. tests/test_release.py ...................................................................F.. =================================== FAILURES =================================== _________________________ TestRelease.test_all_stable __________________________ self = , http = None pdc = None def test_all_stable(self, http, pdc): """Test that we get the expected image dicts for all stable releases, using the test HTTP server and home directory and the PDC query mock. Also check there are no missing expected images (as a test for check_expected). Note this test is # sensitive to the stupid 'current/archive' detection in # get_release: it will fail if the hardcoded cutoff there # doesn't match the data in allstable.json. """ ref = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data', 'allstable.json') with codecs.open(ref, encoding='utf-8') as reffh: expected = json.loads(reffh.read()) # one thing we can handily check here, each time we bump the # backing data for this test to include a new release, is if # any sneaky new subvariants showed up... subvs = [subv.name for subv in fedfind.const.SUBVARIANTS] # for some bizarre reason, if we do this as a decorator like # normal, the test blows up on Python 2.6 patcher = mock.patch('fedfind.release.CurrentRelease.exists', True) patcher.start() for relnum in expected: rel = fedfind.release.get_release(relnum) imgs = sorted(rel.all_images, key=lambda x: x['path']) > assert expected[relnum] == imgs E assert [{'alt': Fals... 1, ...}, ...] == [{'alt': False... 1, ...}, ...] E Detailed information truncated, use "-vv" to show tests/test_release.py:1035: AssertionError ===================== 1 failed, 130 passed in 1.71 seconds ===================== RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.jQSbeP (%check) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.jQSbeP (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, in do 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 --target noarch --nodeps /builddir/build/SPECS/fedfind.spec