Mock Version: 1.4.11 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/python-openidc-client.spec'], timeout=0nspawn_args=['--bind=/tmp/mock-resolv.Y8Yvp1:/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', '841fb919840a4f6c9b71eb8330fec3c3', '-D', '/var/lib/mock/centos-7-i386/root', '--bind=/tmp/mock-resolv.Y8Yvp1:/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/python-openidc-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 BUILDSTDERR: sh: /usr/bin/python2: No such file or directory Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/python-openidc-client.spec'], timeout=0nspawn_args=['--bind=/tmp/mock-resolv.Y8Yvp1:/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', '468c12cdec1549fc8c63ee0f44ff81e0', '-D', '/var/lib/mock/centos-7-i386/root', '--bind=/tmp/mock-resolv.Y8Yvp1:/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/python-openidc-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.HOcd5Q + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + /usr/bin/gzip -dc /builddir/build/SOURCES/python-openidc-client-cd8d91c.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cpjrz4 + umask 022 + cd /builddir/build/BUILD + cd python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + 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/openidc_client copying openidc_client/__init__.py -> build/lib/openidc_client copying openidc_client/release.py -> build/lib/openidc_client copying openidc_client/requestsauth.py -> build/lib/openidc_client running egg_info creating openidc_client.egg-info writing requirements to openidc_client.egg-info/requires.txt writing openidc_client.egg-info/PKG-INFO writing top-level names to openidc_client.egg-info/top_level.txt writing dependency_links to openidc_client.egg-info/dependency_links.txt writing manifest file 'openidc_client.egg-info/SOURCES.txt' reading manifest file 'openidc_client.egg-info/SOURCES.txt' writing manifest file 'openidc_client.egg-info/SOURCES.txt' + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.bvpkim + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386 + cd python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + 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/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386 running install running install_lib creating /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr creating /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib creating /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client copying build/lib/openidc_client/__init__.py -> /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client copying build/lib/openidc_client/release.py -> /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client copying build/lib/openidc_client/requestsauth.py -> /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client byte-compiling /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client/release.py to release.pyc byte-compiling /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client/requestsauth.py to requestsauth.pyc writing byte-compilation script '/tmp/tmpuv8LPb.py' /usr/bin/python2 -O /tmp/tmpuv8LPb.py removing /tmp/tmpuv8LPb.py running install_egg_info running egg_info writing requirements to openidc_client.egg-info/requires.txt writing openidc_client.egg-info/PKG-INFO writing top-level names to openidc_client.egg-info/top_level.txt writing dependency_links to openidc_client.egg-info/dependency_links.txt reading manifest file 'openidc_client.egg-info/SOURCES.txt' writing manifest file 'openidc_client.egg-info/SOURCES.txt' Copying openidc_client.egg-info to /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/lib/python2.7/site-packages/openidc_client-0.6.0-py2.7.egg-info running install_scripts + /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/python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c /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/python-openidc-client-0.6.0-1.20180605gitcd8d91c.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.jLkLhF + umask 022 + cd /builddir/build/BUILD + cd python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + /usr/bin/python2 setup.py test running test running egg_info writing requirements to openidc_client.egg-info/requires.txt writing openidc_client.egg-info/PKG-INFO writing top-level names to openidc_client.egg-info/top_level.txt writing dependency_links to openidc_client.egg-info/dependency_links.txt reading manifest file 'openidc_client.egg-info/SOURCES.txt' writing manifest file 'openidc_client.egg-info/SOURCES.txt' running build_ext BUILDSTDERR: test_cachefile (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that the cachefile name is set by app id. ... ok BUILDSTDERR: test_get_new_token_cancel (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we handle it correctly if the user cancels. ... ok BUILDSTDERR: test_get_new_token_error (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we handle errors correctly. ... ok BUILDSTDERR: test_get_new_token_working (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test for a completely succesful case. ... ok BUILDSTDERR: test_get_token_from_cache (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that if we have a cached token, that gets returned. ... ok BUILDSTDERR: test_get_token_new (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that get_token can get a new token. ... ok BUILDSTDERR: test_get_token_no_new (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that if we don't have a token we can skip getting a new oen. ... ok BUILDSTDERR: test_report_token_issue_refreshable (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we refresh a token if problems are reported. ... ok BUILDSTDERR: test_report_token_issue_revoked (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we only try to refresh once. ... ok BUILDSTDERR: test_send_request_not_valid_token_401_not_refreshable (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we only try to refresh once and then throw away. ... ok BUILDSTDERR: test_send_request_not_valid_token_401_refreshable (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we do refresh with a 401. ... ok BUILDSTDERR: test_send_request_not_valid_token_403 (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we don't refresh if the app returns a 403 (forbidden) ... ok BUILDSTDERR: test_send_request_not_valid_token_500 (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we don't refresh if we get a server error. ... ok BUILDSTDERR: test_send_request_valid_token (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we send the token. ... ok BUILDSTDERR: test_send_request_valid_token_PATH (tests.test_openidcclient.OpenIdBaseClientTest) BUILDSTDERR: Test that we send the token with a PATCH request. ... ok BUILDSTDERR: ---------------------------------------------------------------------- BUILDSTDERR: Ran 15 tests in 0.086s BUILDSTDERR: OK Please visit https://idp/Authorization?scope=test_get_new_token_cancel&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_get_new_token_error&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_get_new_token_working&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_get_token_from_cache&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_get_token_new&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_report_token_issue_refreshable&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_report_token_issue_revoked&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_send_request_not_valid_token_401_not_refreshable&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_send_request_not_valid_token_401_refreshable&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_send_request_not_valid_token_403&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_send_request_not_valid_token_500&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_send_request_valid_token&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization Please visit https://idp/Authorization?scope=test_send_request_valid_token&redirect_uri=http%3A%2F%2Flocalhost%3A1%2F&response_mode=query&response_type=code&client_id=testclient to grant authorization + exit 0 Processing files: python2-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.cuJBrZ + umask 022 + cd /builddir/build/BUILD + cd python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + DOCDIR=/builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/share/doc/python2-openidc-client-0.6.0 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/share/doc/python2-openidc-client-0.6.0 + cp -pr README.md /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/share/doc/python2-openidc-client-0.6.0 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.1UANCj + umask 022 + cd /builddir/build/BUILD + cd python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + LICENSEDIR=/builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/share/licenses/python2-openidc-client-0.6.0 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/share/licenses/python2-openidc-client-0.6.0 + cp -pr COPYING /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386/usr/share/licenses/python2-openidc-client-0.6.0 + exit 0 Provides: python-openidc-client = 0.6.0-1.20180605gitcd8d91c.el7 python2-openidc-client = 0.6.0-1.20180605gitcd8d91c.el7 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: python(abi) = 2.7 Obsoletes: python-openidc-client < 0.6.0-1.20180605gitcd8d91c.el7 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386 Wrote: /builddir/build/RPMS/python2-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.73xtgZ + umask 022 + cd /builddir/build/BUILD + cd python-openidc-client-cd8d91c0503124305727f38a0f9fe93bb472209c + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-openidc-client-0.6.0-1.20180605gitcd8d91c.el7.i386 + exit 0 Child return code was: 0