Mock Version: 1.1.41 Mock Version: 1.1.41 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target noarch --nodeps builddir/build/SPECS/nodejs-proxyquire.spec'], False, '/var/lib/mock/f21-build-2628840-435085/root/', None, 86400, True, False, 1000, 425, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target noarch --nodeps builddir/build/SPECS/nodejs-proxyquire.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} warning: Could not canonicalize hostname: buildhw-05.phx2.fedoraproject.org Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/nodejs-proxyquire-1.1.0-1.fc21.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/nodejs-proxyquire.spec'], False, '/var/lib/mock/f21-build-2628840-435085/root/', None, 86400, True, False, 1000, 425, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/nodejs-proxyquire.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.UOM4bQ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/proxyquire-1.1.0.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd package + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf node_modules + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6NoxAs + umask 022 + cd /builddir/build/BUILD + cd package + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.PdpsZ4 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch ++ dirname /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch + cd package + mkdir -p /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch/usr/lib/node_modules/proxyquire + cp -pr package.json index.js lib /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch/usr/lib/node_modules/proxyquire + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules + /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/package /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/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.U9onMH + umask 022 + cd /builddir/build/BUILD + cd package + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules --check + /usr/lib/node_modules/mocha/bin/mocha   api  default export  ✓ proxyquire can load   ✓ proxyquire can callThru and then load   ✓ proxyquire can noCallThru and then load   Illegal parameters to resolve give meaningful errors  when I pass no request  ✓ throws an exception explaining that a request path must be provided   when I pass an object as a request  ✓ throws an exception explaining that request needs to be a requirable string   when I pass no stubs  ✓ throws an exception explaining that resolve without stubs makes no sense   when I pass a string as stubs  ✓ throws an exception explaining that stubs need to be an object   Proxyquire  load()  ✓ defaults to preserving the cache   preserveCache()  ✓ returns a reference to itself, so it can be chained   ✓ has Proxyquire restore the cache for the module   ✓ allows Singletons to function properly   noPreserveCache()  ✓ returns a reference to itself, so it can be chained   ✓ forces subsequent requires to reload the proxied module   ✓ deletes the require.cache for the module being stubbed   when I try to use compat mode  ✓ should let me know that I need to fix my code or downgrade   when I require stubs with different extensions  ✓ intercepts [] object   ✓ intercepts [] function   ✓ intercepts [.json] object   ✓ intercepts [.node] object   global flags set  ✓ should override require globally   ✓ should override require globally even when require's execution is deferred   global flags not set  ✓ should not override require globally   ✓ should not override require globally even when require's execution is deferred   Multiple requires of same module don't affect each other  Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2  ✓ foo1.bigBar() == "BAR1"   ✓ foo2.bigBar() == "BAR2"   and I change bar1.bar() to return barone  ✓ foo1.bigBar() == "BARONE"   ✓ foo2.bigBar() == "BAR2"   When resolving foo that requires stubbed /not/existing/bar.json  ✓ throws an error   When resolving foo that requires stubbed /not/existing/bar.json with noCallThru  ✓ resolves foo with stubbed bar   When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz  ✓ does not stub baz in bar   ✓ does not affect a normal baz import   Given foo requires the bar and path modules and bar.bar() returns "bar"  When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober.  ✓ foo is required 2 times   foo's bar is unchanged  ✓ foo.bigBar() == "BAR"   only stubbed modules have overrides in foober  ✓ foober.bigBar() == "BARBER"   ✓ foober.bigExt("/folder/test.ext") == ".EXT"   ✓ foober.bigBas("/folder/test.ext") == "TEST.EXT"   when I override keys of stubs after resolve  ✓ overrides behavior when module is required inside function call   ✓ overrides behavior when module is required on top of file   and then delete overrides of stubs after resolve  ✓ reverts to original behavior when module is required inside function call   ✓ doesn't properly revert to original behavior when module is required on top of file   When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename  and path.extname(file) is stubbed to return "override " + file  and callThru was not changed globally or for path module  ✓ foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT"   ✓ foo.bigBas(file) == "TEST.EXT"   and callThru is turned off for path module  ✓ foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT"   ✓ foo.bigBas(file) throws   and callThru was turned off globally  and not changed for path module  ✓ foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT"   ✓ foo.bigBas(file) throws   and turned back on for path module  ✓ foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT"   ✓ foo.bigBas(file) == "TEST.EXT"   and turned back on globally  ✓ foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT"   ✓ foo.bigBas(file) == "TEST.EXT"    50 passing (59ms) + exit 0 Processing files: nodejs-proxyquire-1.1.0-1.fc21.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ZKtivl + umask 022 + cd /builddir/build/BUILD + cd package + DOCDIR=/builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch/usr/share/doc/nodejs-proxyquire + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch/usr/share/doc/nodejs-proxyquire + cp -pr LICENSE /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch/usr/share/doc/nodejs-proxyquire + cp -pr README.md /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch/usr/share/doc/nodejs-proxyquire + cp -pr examples /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch/usr/share/doc/nodejs-proxyquire + exit 0 Provides: nodejs-proxyquire = 1.1.0-1.fc21 npm(proxyquire) = 1.1.0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: nodejs(engine) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch Wrote: /builddir/build/RPMS/nodejs-proxyquire-1.1.0-1.fc21.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.21jHKZ + umask 022 + cd /builddir/build/BUILD + cd package + /usr/bin/rm -rf /builddir/build/BUILDROOT/nodejs-proxyquire-1.1.0-1.fc21.noarch + exit 0 Child return code was: 0 LEAVE do -->