Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-facon.spec'], chrootPath='/var/lib/mock/centos+epel-7-x86_64-1687745342.686830/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.v3u3z2_g:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.v3u3z2_g:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '48d7bd0ee6924a7e9000f2cea517dce1', '-D', '/var/lib/mock/centos+epel-7-x86_64-1687745342.686830/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.v3u3z2_g:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-facon.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rubygem-facon-0.5.0-22.el7.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-facon.spec'], chrootPath='/var/lib/mock/centos+epel-7-x86_64-1687745342.686830/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.v3u3z2_g:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.v3u3z2_g:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ee2465c0adbd42588b5fb270febce60f', '-D', '/var/lib/mock/centos+epel-7-x86_64-1687745342.686830/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.v3u3z2_g:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-facon.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Kmcvjd + umask 022 + cd /builddir/build/BUILD + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-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'\'' --with-cxxflags='\''-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc /builddir/build/SOURCES/facon-0.5.0.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD Bin dir: /builddir/build/BUILD/usr/bin Gem home: /builddir/build/BUILD/usr/share/gems /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/.gitignore /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/Changelog.txt /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/Gemfile /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/Gemfile.lock /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/README.txt /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/Rakefile /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/facon.gemspec /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/baconize.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/core_ext/object.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/error_generator.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/expectation.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/mock.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/mockable.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/proxy.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/lib/facon/version.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/spec/baconize_spec.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/spec/expectation_spec.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/spec/mock_spec.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/spec/spec_helper.rb /builddir/build/BUILD/usr/share/gems/gems/facon-0.5.0/spec/stub_spec.rb Successfully installed facon-0.5.0 Parsing documentation for facon-0.5.0 Parsing sources... 11% [ 1/ 9] lib/facon.rb 22% [ 2/ 9] lib/facon/baconize.rb 33% [ 3/ 9] lib/facon/core_ext/object.rb 44% [ 4/ 9] lib/facon/error_generator.rb 55% [ 5/ 9] lib/facon/expectation.rb 66% [ 6/ 9] lib/facon/mock.rb 77% [ 7/ 9] lib/facon/mockable.rb 88% [ 8/ 9] lib/facon/proxy.rb 100% [ 9/ 9] lib/facon/version.rb Installing ri documentation for facon-0.5.0 Installing darkfish documentation for facon-0.5.0 Done installing documentation for facon after 0 seconds 1 gem installed + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8FG2sm + umask 022 + cd /builddir/build/BUILD + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.KKJbDv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64 + rm -rf /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems + cp -a .//usr/share/gems/build_info .//usr/share/gems/cache .//usr/share/gems/doc .//usr/share/gems/extensions .//usr/share/gems/gems .//usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/ + rm -f /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0/.gitignore + rm -f /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0/Gemfile.lock + rm -f /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0/Gemfile + pushd /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0 ~/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0 ~/build/BUILD + sed -i -e 's|require "bundler"||' spec/spec_helper.rb + sed -i -e 's|Bundler.setup||' spec/spec_helper.rb + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YQcaZE + umask 022 + cd /builddir/build/BUILD + pushd /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0 ~/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0 ~/build/BUILD + bacon spec/baconize_spec.rb spec/expectation_spec.rb spec/mock_spec.rb spec/stub_spec.rb Facon::Baconize - should make the #receive instance method available to Should - should allow expectations on mocks with should.receive(:message) - should allow expectations on mocks with should.not.receive(:message) - should allow expectations on arbitrary objects with should.receive(:message) A mock object - should pass when not receiving message specified as not to be received - should pass when receiving message specified as not to be received with different args - should raise a MockExpectationError when receiving message specified as not to be received - should raise a MockExpectationError when receiving message specified as not to be received with arguments - should pass when receiving message specified as not to be received, but with wrong arguments - should raise a MockExpectationError when receiving message specified as to be received is not called - should raise a MockExpectationError when receiving message specified as to be received, but with wrong arguments - should raise a MockExpectationError when receiving an unexpected message - should raise a MockExpectationError when receiving an unexpected message with arguments - should use block for expectation if provided - should use block with given arguments for expectation if provided - should raise a MockExpectationError if block for expectation fails - should raise a MockExpectationError if there's a block for expectation and an #and_return expectation is also set - should pass when receiving a message the expected number of times - should raise a MockExpectationError when receiving a message < expected number of times - should raise a MockExpectationError when receiving a message > expected number of times - should pass when receiving a message once as expected - should raise a MockExpectationError when never receiving a message but expecting it once - should raise a MockExpectationError when receiving a message more than once but expecting it once - should pass when never receiving a message as expected - should raise a MockExpectationError when receiving a message but never expecting it Facon::Mock - should stub out a method on a mock - should stub out a method on a non-mock A method stub - should override existing methods - should return the expected value given to #and_return when the stubbed method is received - should ignore when the stubbed method is received - should ignore when the stubbed method is received with arguments - should yield the argument given to #and_yield - should yield the multiple arguments given to #and_yield - should yield multiple times with multiple calls to #and_yield (i.e. allow chaining of #and_yield calls) - should be able to yield and return different objects (i.e. allow #and_yield and #and_return chaining) - should raise the expected exception given to #and_raise - should throw the expected thrown value given to #and_throw - should ignore when the stubbed method is never called [MISSING] A method stub with arguments - should ignore when never called [MISSING] - should ignore when called with expected argument [MISSING] - should raise a NoMethodError when called with no arguments - should raise a NoMethodError when called with some other argument - should allow another stub with different arguments Bacon::Error: empty specification: A method stub should ignore when the stubbed method is never called /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0/lib/facon/baconize.rb:56:in `it_with_mock_verification': A method stub - should ignore when the stubbed method is never called spec/stub_spec.rb:95:in `block in ' spec/stub_spec.rb:3:in `' Bacon::Error: empty specification: A method stub with arguments should ignore when never called /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0/lib/facon/baconize.rb:56:in `it_with_mock_verification': A method stub with arguments - should ignore when never called spec/stub_spec.rb:106:in `block in ' spec/stub_spec.rb:99:in `' Bacon::Error: empty specification: A method stub with arguments should ignore when called with expected argument /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64/usr/share/gems/gems/facon-0.5.0/lib/facon/baconize.rb:56:in `it_with_mock_verification': A method stub with arguments - should ignore when called with expected argument spec/stub_spec.rb:109:in `block in ' spec/stub_spec.rb:99:in `' 43 specifications (74 requirements), 0 failures, 0 errors + popd ~/build/BUILD + exit 0 Processing files: rubygem-facon-0.5.0-22.el7.noarch perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Provides: rubygem(facon) = 0.5.0 rubygem(facon) = 0.5.0 rubygem-facon = 0.5.0-22.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ruby(rubygems) Processing files: rubygem-facon-doc-0.5.0-22.el7.noarch perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Provides: rubygem-facon-doc = 0.5.0-22.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64 Wrote: /builddir/build/RPMS/rubygem-facon-0.5.0-22.el7.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-facon-doc-0.5.0-22.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.mZrogc + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-facon-0.5.0-22.el7.x86_64 + exit 0 Child return code was: 0