Mock Version: 1.2.13 Mock Version: 1.2.13 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/nodejs-proxyquire.spec'], chrootPath='/var/lib/mock/f23-build-4198866-535477/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=425user='mockbuild'timeout=172800logger=uid=1000) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/nodejs-proxyquire.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False warning: Could not canonicalize hostname: buildvm-10.phx2.fedoraproject.org Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/nodejs-proxyquire-1.7.3-1.fc23.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/nodejs-proxyquire.spec '], chrootPath='/var/lib/mock/f23-build-4198866-535477/root'shell=Falseuid=1000env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=425user='mockbuild'timeout=172800private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/nodejs-proxyquire.spec '] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.L2C88k + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/proxyquire-1.7.3.tgz + /usr/bin/tar -xof - + 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.1cr3F1 + umask 022 + cd /builddir/build/BUILD + cd package + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EYkfdI + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch ++ dirname /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch + cd package + mkdir -p /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/lib/node_modules/proxyquire + cp -pr package.json index.js lib /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.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.ktrW0o + 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 when I pass an undefined stub ✓ throws an exception with the stub key 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" Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. ✓ foo is required 1 times foo's boof is boofber ✓ foo.boof == boofber When I resolve foo with foonumber stub as foonum. ✓ foo is required 1 times foo's foonum is foonumber ✓ foo.foonum == foonumber When I resolve foo with fooboolber stub as foobool. ✓ foo is required 1 times foo's foobool is fooboolber ✓ foo.foobool == fooboolber 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 nulled file package ✓ throws an error When resolving foo that optionally requires nulled crypto package ✓ catches when resolving crypto 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" 59 passing (88ms) + exit 0 Processing files: nodejs-proxyquire-1.7.3-1.fc23.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ebIhH6 + umask 022 + cd /builddir/build/BUILD + cd package + DOCDIR=/builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/share/doc/nodejs-proxyquire + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/share/doc/nodejs-proxyquire + cp -pr README.md /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/share/doc/nodejs-proxyquire + cp -pr examples /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/share/doc/nodejs-proxyquire + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.pVjAoO + umask 022 + cd /builddir/build/BUILD + cd package + LICENSEDIR=/builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/share/licenses/nodejs-proxyquire + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/share/licenses/nodejs-proxyquire + cp -pr LICENSE /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch/usr/share/licenses/nodejs-proxyquire + exit 0 Provides: nodejs-proxyquire = 1.7.3-1.fc23 npm(proxyquire) = 1.7.3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: nodejs(engine) npm(fill-keys) >= 1.0.2 npm(fill-keys) < 2 npm(module-not-found-error) >= 1.0.0 npm(module-not-found-error) < 2 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch warning: Could not canonicalize hostname: buildvm-10.phx2.fedoraproject.org Wrote: /builddir/build/RPMS/nodejs-proxyquire-1.7.3-1.fc23.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.wydqnw + umask 022 + cd /builddir/build/BUILD + cd package + /usr/bin/rm -rf /builddir/build/BUILDROOT/nodejs-proxyquire-1.7.3-1.fc23.noarch + exit 0 Child return code was: 0 LEAVE do -->