Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-docker-squash.spec'], timeout=0user='mockbuild'printOutput=Falseuid=1001logger=shell=FalsechrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-2870/root'gid=135env={'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-docker-squash.spec'] with env {'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir'} and shell False sh: /usr/bin/python2: No such file or directory sh: /usr/bin/python2: No such file or directory sh: /usr/bin/python2: No such file or directory warning: Could not canonicalize hostname: copr-builder-198447587.novalocal Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-docker-squash-1.0.0-0.5.rc4.el7.centos.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-docker-squash.spec'], timeout=0user='mockbuild'printOutput=Falseuid=1001logger=shell=FalsechrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-2870/root'private_network=Truegid=135env={'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-docker-squash.spec'] with env {'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'SHELL': '/bin/bash', 'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mXFS2Q + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf docker-squash-1.0.0rc4 + /usr/bin/gzip -dc /builddir/build/SOURCES/1.0.0rc4.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd docker-squash-1.0.0rc4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vz9yu4 + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.0rc4 + 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/docker_squash copying docker_squash/version.py -> build/lib/docker_squash copying docker_squash/v2_image.py -> build/lib/docker_squash copying docker_squash/v1_image.py -> build/lib/docker_squash copying docker_squash/squash.py -> build/lib/docker_squash copying docker_squash/image.py -> build/lib/docker_squash copying docker_squash/errors.py -> build/lib/docker_squash copying docker_squash/cli.py -> build/lib/docker_squash copying docker_squash/__init__.py -> build/lib/docker_squash creating build/lib/docker_squash/lib copying docker_squash/lib/xtarfile.py -> build/lib/docker_squash/lib copying docker_squash/lib/common.py -> build/lib/docker_squash/lib copying docker_squash/lib/__init__.py -> build/lib/docker_squash/lib + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Eva5ci + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64 + cd docker-squash-1.0.0rc4 + 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/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr creating /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash creating /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/lib copying build/lib/docker_squash/lib/__init__.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/lib copying build/lib/docker_squash/lib/common.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/lib copying build/lib/docker_squash/lib/xtarfile.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/lib copying build/lib/docker_squash/__init__.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash copying build/lib/docker_squash/cli.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash copying build/lib/docker_squash/errors.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash copying build/lib/docker_squash/image.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash copying build/lib/docker_squash/squash.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash copying build/lib/docker_squash/v1_image.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash copying build/lib/docker_squash/v2_image.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash copying build/lib/docker_squash/version.py -> /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/lib/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/lib/common.py to common.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/lib/xtarfile.py to xtarfile.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/cli.py to cli.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/errors.py to errors.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/image.py to image.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/squash.py to squash.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/v1_image.py to v1_image.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/v2_image.py to v2_image.pyc byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/version.py to version.pyc writing byte-compilation script '/tmp/tmp7bZ_7V.py' /usr/bin/python2 -O /tmp/tmp7bZ_7V.py removing /tmp/tmp7bZ_7V.py running install_egg_info running egg_info creating docker_squash.egg-info writing requirements to docker_squash.egg-info/requires.txt writing docker_squash.egg-info/PKG-INFO writing top-level names to docker_squash.egg-info/top_level.txt writing dependency_links to docker_squash.egg-info/dependency_links.txt writing entry points to docker_squash.egg-info/entry_points.txt writing manifest file 'docker_squash.egg-info/SOURCES.txt' reading manifest file 'docker_squash.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'docker_squash.egg-info/SOURCES.txt' Copying docker_squash.egg-info to /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash-1.0.0rc4-py2.7.egg-info running install_scripts Installing docker-squash script to /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/bin + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/docker-squash-1.0.0rc4 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. 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/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.nC8gXw + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.0rc4 + py.test-2.7 -v tests/test_unit_v1_image.py tests/test_unit_v2_image.py ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- py-1.4.27 -- pytest-2.7.0 -- /usr/bin/python rootdir: /builddir/build/BUILD/docker-squash-1.0.0rc4, inifile: collecting ... collected 35 items tests/test_unit_v1_image.py::TestSkippingFiles::test_should_not_skip_file_not_in_path_to_skip PASSED tests/test_unit_v1_image.py::TestSkippingFiles::test_should_not_skip_the_file_that_name_is_similar_to_skipped_path PASSED tests/test_unit_v1_image.py::TestSkippingFiles::test_should_skip_exact_files PASSED tests/test_unit_v1_image.py::TestSkippingFiles::test_should_skip_files_in_subdirectory PASSED tests/test_unit_v1_image.py::TestParseImageName::test_should_parse_name_name_with_proper_tag PASSED tests/test_unit_v1_image.py::TestParseImageName::test_should_parse_name_name_without_tag PASSED tests/test_unit_v1_image.py::TestPrepareTemporaryDirectory::test_create_tmp_directory_if_not_provided PASSED tests/test_unit_v1_image.py::TestPrepareTemporaryDirectory::test_should_raise_if_directory_already_exists PASSED tests/test_unit_v1_image.py::TestPrepareTemporaryDirectory::test_should_use_provided_tmp_dir PASSED tests/test_unit_v1_image.py::TestPrepareLayersToSquash::test_should_generate_list_of_layers PASSED tests/test_unit_v1_image.py::TestPrepareLayersToSquash::test_should_not_fail_with_empty_list_of_layers PASSED tests/test_unit_v1_image.py::TestPrepareLayersToSquash::test_should_return_all_layers_if_from_layer_is_not_found PASSED tests/test_unit_v1_image.py::TestGenerateV1ImageId::test_should_generate_id PASSED tests/test_unit_v1_image.py::TestGenerateV1ImageId::test_should_generate_id_that_is_not_integer_shen_shortened PASSED tests/test_unit_v1_image.py::TestGenerateRepositoriesJSON::test_generate_json PASSED tests/test_unit_v1_image.py::TestGenerateRepositoriesJSON::test_handle_empty_image_id PASSED tests/test_unit_v1_image.py::TestGenerateRepositoriesJSON::test_should_not_generate_repositories_if_name_and_tag_is_missing PASSED tests/test_unit_v1_image.py::TestMarkerFiles::test_should_find_all_marker_files PASSED tests/test_unit_v1_image.py::TestMarkerFiles::test_should_return_empty_dict_when_no_files_are_in_the_tar PASSED tests/test_unit_v1_image.py::TestMarkerFiles::test_should_return_empty_dict_when_no_marker_files_are_found PASSED tests/test_unit_v1_image.py::TestAddMarkers::test_should_add_all_marker_files_to_empty_tar PASSED tests/test_unit_v1_image.py::TestAddMarkers::test_should_not_add_any_marker_files PASSED tests/test_unit_v1_image.py::TestAddMarkers::test_should_not_fail_with_empty_list_of_markers_to_add PASSED tests/test_unit_v1_image.py::TestAddMarkers::test_should_skip_a_marker_file_if_file_is_in_unsquashed_layers PASSED tests/test_unit_v1_image.py::TestGeneral::test_exit_if_no_output_path_provided_and_loading_is_disabled_too PASSED tests/test_unit_v1_image.py::TestGeneral::test_handle_case_when_no_image_is_provided PASSED tests/test_unit_v2_image.py::TestReadingConfigFiles::test_should_read_json_file PASSED tests/test_unit_v2_image.py::TestGeneratingMetadata::test_generate_image_metadata PASSED tests/test_unit_v2_image.py::TestGeneratingMetadata::test_generate_image_metadata_without_any_layers_to_squash PASSED tests/test_unit_v2_image.py::TestGeneratingMetadata::test_generate_manifest PASSED tests/test_unit_v2_image.py::TestGeneratingMetadata::test_generate_squashed_layer_metadata PASSED tests/test_unit_v2_image.py::TestGeneratingMetadata::test_generate_squashed_layer_path_id PASSED tests/test_unit_v2_image.py::TestWritingMetadata::test_write_image_metadata PASSED tests/test_unit_v2_image.py::TestWritingMetadata::test_write_manifest_metadata PASSED tests/test_unit_v2_image.py::TestWritingMetadata::test_write_squashed_layer_metadata PASSED ========================== 35 passed in 0.19 seconds =========================== + exit 0 Processing files: python2-docker-squash-1.0.0-0.5.rc4.el7.centos.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.gw4pSM + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.0rc4 + DOCDIR=/builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/share/doc/python2-docker-squash-1.0.0 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/share/doc/python2-docker-squash-1.0.0 + cp -pr README.rst /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/share/doc/python2-docker-squash-1.0.0 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.Zy4GO2 + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.0rc4 + LICENSEDIR=/builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/share/licenses/python2-docker-squash-1.0.0 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/share/licenses/python2-docker-squash-1.0.0 + cp -pr LICENSE /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64/usr/share/licenses/python2-docker-squash-1.0.0 + exit 0 Provides: python-docker-scripts = 1.0.0-0.5.rc4.el7.centos python-docker-squash = 1.0.0-0.5.rc4.el7.centos python2-docker-squash = 1.0.0-0.5.rc4.el7.centos Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python2 python(abi) = 2.7 Obsoletes: python-docker-scripts <= 1.0.0-0.2.rc2 python-docker-squash < 1.0.0-0.5.rc4.el7.centos Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64 warning: Could not canonicalize hostname: copr-builder-198447587.novalocal Wrote: /builddir/build/RPMS/python2-docker-squash-1.0.0-0.5.rc4.el7.centos.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.rU5NBA + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.0rc4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-docker-squash-1.0.0-0.5.rc4.el7.centos.x86_64 + exit 0 Child return code was: 0