Mock Version: 1.2.18 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-docker-squash.spec'], gid=135user='mockbuild'chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-2924/root'env={'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'HOME': '/builddir', 'SHELL': '/bin/bash'}shell=FalseprintOutput=Falselogger=timeout=0uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-docker-squash.spec'] with env {'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'HOME': '/builddir', 'SHELL': '/bin/bash'} 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-42457181.novalocal Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-docker-squash-1.0.1-1.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'], gid=135user='mockbuild'chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-2924/root'env={'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'HOME': '/builddir', 'SHELL': '/bin/bash'}shell=FalseprintOutput=Falselogger=uid=1001timeout=0private_network=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-docker-squash.spec'] with env {'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'TERM': 'vt100', 'HOME': '/builddir', 'SHELL': '/bin/bash'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XF2dpK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf docker-squash-1.0.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/1.0.1.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd docker-squash-1.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MriR8n + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.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/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.1wQqc2 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64 + cd docker-squash-1.0.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 install -O1 --skip-build --root /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr creating /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash creating /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash byte-compiling /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.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.1-1.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash/version.py to version.pyc writing byte-compilation script '/tmp/tmpPu3R0o.py' /usr/bin/python2 -O /tmp/tmpPu3R0o.py removing /tmp/tmpPu3R0o.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.1-1.el7.centos.x86_64/usr/lib/python2.7/site-packages/docker_squash-1.0.1-py2.7.egg-info running install_scripts Installing docker-squash script to /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.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.1 /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.1-1.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.yU7EDH + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.1 + py.test-2.7 -v tests/test_unit_squash.py 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.1, inifile: collecting ... collected 38 items tests/test_unit_squash.py::TestSquash::test_exit_if_no_output_path_provided_and_loading_is_disabled_too PASSED tests/test_unit_squash.py::TestSquash::test_handle_case_when_no_image_is_provided PASSED tests/test_unit_squash.py::TestSquash::test_should_cleanup_after_squashing PASSED tests/test_unit_squash.py::TestSquash::test_should_not_cleanup_after_squashing PASSED 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_add_marker_file_when_tar_has_prefixed_entries 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_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 ========================== 38 passed in 0.24 seconds =========================== + exit 0 Processing files: python2-docker-squash-1.0.1-1.el7.centos.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.hvJwwo + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.1 + DOCDIR=/builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/share/doc/python2-docker-squash-1.0.1 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/share/doc/python2-docker-squash-1.0.1 + cp -pr README.rst /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/share/doc/python2-docker-squash-1.0.1 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.QWkNq5 + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/share/licenses/python2-docker-squash-1.0.1 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/share/licenses/python2-docker-squash-1.0.1 + cp -pr LICENSE /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64/usr/share/licenses/python2-docker-squash-1.0.1 + exit 0 Provides: python-docker-scripts = 1.0.1-1.el7.centos python-docker-squash = 1.0.1-1.el7.centos python2-docker-squash = 1.0.1-1.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.1-1.el7.centos Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64 warning: Could not canonicalize hostname: copr-builder-42457181.novalocal Wrote: /builddir/build/RPMS/python2-docker-squash-1.0.1-1.el7.centos.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.wZcEkv + umask 022 + cd /builddir/build/BUILD + cd docker-squash-1.0.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-docker-squash-1.0.1-1.el7.centos.x86_64 + exit 0 Child return code was: 0