Mock Version: 1.4.11 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/rpkg-client.spec'], timeout=0nspawn_args=['--bind=/tmp/mock-resolv.rqsODe:/etc/resolv.conf']shell=Falseuid=1001chrootPath='/var/lib/mock/centos-7-i386/root'gid=135user='mockbuild'env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}logger=unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '0ad2c86b93e449f1b2cce507db6e2de7', '-D', '/var/lib/mock/centos-7-i386/root', '--bind=/tmp/mock-resolv.rqsODe:/etc/resolv.conf', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1= \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/rpkg-client.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system BUILDSTDERR: sh: /usr/bin/python2: No such file or directory Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/rpkg-client-0.14-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rpkg-client.spec'], timeout=0nspawn_args=['--bind=/tmp/mock-resolv.rqsODe:/etc/resolv.conf']shell=Falseuid=1001chrootPath='/var/lib/mock/centos-7-i386/root'gid=135user='mockbuild'env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}logger=unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b32e86d7358d4b1ba1adb02ea7ef2d3f', '-D', '/var/lib/mock/centos-7-i386/root', '--bind=/tmp/mock-resolv.rqsODe:/etc/resolv.conf', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1= \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rpkg-client.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.T16ynf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rpkg-client-0.14 + /usr/bin/gzip -dc /builddir/build/SOURCES/rpkg-client-0.14.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd rpkg-client-0.14 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bzsGoI + umask 022 + cd /builddir/build/BUILD + cd rpkg-client-0.14 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/rpkglib copying rpkglib/lookaside.py -> build/lib/rpkglib copying rpkglib/utils.py -> build/lib/rpkglib copying rpkglib/__init__.py -> build/lib/rpkglib copying rpkglib/exceptions.py -> build/lib/rpkglib copying rpkglib/cli.py -> build/lib/rpkglib creating build/lib/tests copying tests/test_cli.py -> build/lib/tests copying tests/__init__.py -> build/lib/tests copying tests/base.py -> build/lib/tests copying tests/test_cmd.py -> build/lib/tests copying tests/spec_templates.py -> build/lib/tests copying tests/test_lookaside.py -> build/lib/tests running egg_info creating rpkg_client.egg-info writing rpkg_client.egg-info/PKG-INFO writing top-level names to rpkg_client.egg-info/top_level.txt writing dependency_links to rpkg_client.egg-info/dependency_links.txt writing manifest file 'rpkg_client.egg-info/SOURCES.txt' reading manifest file 'rpkg_client.egg-info/SOURCES.txt' writing manifest file 'rpkg_client.egg-info/SOURCES.txt' running build_scripts creating build/scripts-2.7 copying and adjusting rpkg -> build/scripts-2.7 changing mode of build/scripts-2.7/rpkg from 644 to 755 + sleep 1 + /usr/bin/python2 doc/rpkg_man_page.py + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ijO5wh + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386 + cd rpkg-client-0.14 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386 running install running install_lib creating /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr creating /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib creating /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7 creating /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib copying build/lib/rpkglib/lookaside.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib copying build/lib/rpkglib/utils.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib copying build/lib/rpkglib/__init__.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib copying build/lib/rpkglib/exceptions.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib copying build/lib/rpkglib/cli.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib creating /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests copying build/lib/tests/test_cli.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests copying build/lib/tests/__init__.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests copying build/lib/tests/base.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests copying build/lib/tests/test_cmd.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests copying build/lib/tests/spec_templates.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests copying build/lib/tests/test_lookaside.py -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib/lookaside.py to lookaside.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib/utils.py to utils.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib/exceptions.py to exceptions.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkglib/cli.py to cli.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests/test_cli.py to test_cli.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests/base.py to base.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests/test_cmd.py to test_cmd.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests/spec_templates.py to spec_templates.pyc byte-compiling /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/tests/test_lookaside.py to test_lookaside.pyc writing byte-compilation script '/tmp/tmpNmfMu6.py' /usr/bin/python2 -O /tmp/tmpNmfMu6.py removing /tmp/tmpNmfMu6.py running install_egg_info running egg_info writing rpkg_client.egg-info/PKG-INFO writing top-level names to rpkg_client.egg-info/top_level.txt writing dependency_links to rpkg_client.egg-info/dependency_links.txt reading manifest file 'rpkg_client.egg-info/SOURCES.txt' writing manifest file 'rpkg_client.egg-info/SOURCES.txt' Copying rpkg_client.egg-info to /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/lib/python2.7/site-packages/rpkg_client-0.14-py2.7.egg-info running install_scripts creating /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/bin copying build/scripts-2.7/rpkg -> /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/bin changing mode of /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/bin/rpkg to 755 + install -d /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/share/man/man1 + install -p -m 0644 rpkg.1 /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/share/man/man1 + install -d /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/etc + install -d /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/share/bash-completion/completions + cp -a rpkg.conf /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/etc/ + cp -a rpkg.bash /builddir/build/BUILDROOT/rpkg-client-0.14-1.el7.i386/usr/share/bash-completion/completions/ + /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/rpkg-client-0.14 /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/rpkg-client-0.14-1.el7.i386/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.XM80ZS + umask 022 + cd /builddir/build/BUILD + cd rpkg-client-0.14 + ./run_tests.sh ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- py-1.4.32 -- pytest-2.7.0 rootdir: /builddir/build/BUILD/rpkg-client-0.14, inifile: collected 25 items tests/test_cli.py ........ BUILDSTDERR: tests/test_cmd.py ......FF.error: Package has no %description: testpkg ....... tests/test_lookaside.py . =================================== FAILURES =================================== ______________ TestCommands.test_load_ns_module_name_on_plain_dir ______________ self = def test_load_ns_module_name_on_plain_dir(self): self.dump_spec(NO_SOURCE_ZERO_SPEC_TEMPLATE, pkgname='somename') > self.cmd.load_ns_module_name() tests/test_cmd.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def load_ns_module_name(self): """Loads the namespace module name""" try: replacements = {'user': self.user, 'module':'(.*)/?'} gitbaseurl_pattern = self.gitbaseurl%replacements + '$' anongiturl_pattern = self.anongiturl%replacements + '$' match = re.match(gitbaseurl_pattern, self.push_url) if not match: match = re.match(anongiturl_pattern, self.push_url) if match: ns_module_name = match.group(1) if ns_module_name.endswith('.git'): ns_module_name = ns_module_name[:-len('.git')] self._ns_module_name = ns_module_name return except rpkgError: pass self.load_nameverrel() > if self._module_name_spec: E AttributeError: 'Commands' object has no attribute '_module_name_spec' rpkglib/__init__.py:100: AttributeError ____________ TestCommands.test_load_ns_module_name_reads_git_first _____________ self = def test_load_ns_module_name_reads_git_first(self): self.dump_spec(NO_SOURCE_ZERO_SPEC_TEMPLATE, pkgname='somename') > self.cmd.load_ns_module_name() tests/test_cmd.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def load_ns_module_name(self): """Loads the namespace module name""" try: replacements = {'user': self.user, 'module':'(.*)/?'} gitbaseurl_pattern = self.gitbaseurl%replacements + '$' anongiturl_pattern = self.anongiturl%replacements + '$' match = re.match(gitbaseurl_pattern, self.push_url) if not match: match = re.match(anongiturl_pattern, self.push_url) if match: ns_module_name = match.group(1) if ns_module_name.endswith('.git'): ns_module_name = ns_module_name[:-len('.git')] self._ns_module_name = ns_module_name return except rpkgError: pass self.load_nameverrel() > if self._module_name_spec: E AttributeError: 'Commands' object has no attribute '_module_name_spec' rpkglib/__init__.py:100: AttributeError ===================== 2 failed, 23 passed in 3.18 seconds ====================== BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.XM80ZS (%check) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.XM80ZS (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 634, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) Error: Command failed: # /usr/bin/systemd-nspawn -q -M b32e86d7358d4b1ba1adb02ea7ef2d3f -D /var/lib/mock/centos-7-i386/root --bind=/tmp/mock-resolv.rqsODe:/etc/resolv.conf --setenv=LANG=en_US.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1= \s-\v\$ -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rpkg-client.spec