Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/nodejs-supports-color.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-2deea43c3c8e606df5c0109aecb05ec64bd9883e/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=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/nodejs-supports-color.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 Wrote: /builddir/build/SRPMS/nodejs-supports-color-1.2.0-2.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/nodejs-supports-color.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-2deea43c3c8e606df5c0109aecb05ec64bd9883e/root'shell=Falseuid=996env={'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=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/nodejs-supports-color.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.MART5C + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/supports-color-1.2.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 . + cp /builddir/build/SOURCES/license . + cp /builddir/build/SOURCES/test.js . + rm -rf node_modules/ + /usr/lib/rpm/nodejs-fixdep --caret + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ikk0Xw + umask 022 + cd /builddir/build/BUILD + cd package + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.CrgSCp + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch ++ dirname /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch + cd package + mkdir -p /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch/usr/lib/node_modules/supports-color + cp -pr package.json index.js cli.js /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch/usr/lib/node_modules/supports-color + mkdir -p /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch//usr/bin/ + ln -s /usr/lib/node_modules/supports-color/cli.js /builddir/build/BUILDROOT/nodejs-supports-color-1.2.0-2.el7.noarch//usr/bin/supports-color + /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/redhat/brp-compress + /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.bo7DT9 + umask 022 + cd /builddir/build/BUILD + cd package + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules --check + mocha (node:13984) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. ��������������������������� 0 passing (133ms) 9 failing 1) should return false if not TTY: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:13:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) 2) should return false if --no-color flag is used: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:18:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) 3) should return false if --no-colors flag is used: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:23:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) 4) should return true if --color flag is used: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:28:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) RPM build errors: 5) should return true if --colors flag is used: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:33:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) 6) should return true if `COLORTERM` is in env: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:38:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) 7) should support `--color=true` flag: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:43:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) 8) should support `--color=always` flag: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:48:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) 9) should support `--color=false` flag: TypeError: Cannot read property 'getFileName' of undefined at module.exports (/usr/lib/node_modules/caller-path/index.js:5:25) at module.exports (/usr/lib/node_modules/require-uncached/index.js:11:42) at Context. (/builddir/build/BUILD/package/test.js:53:15) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:223:21) at Test.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at Runner.runTest (/usr/lib/node_modules/mocha/lib/runner.js:374:10) at /usr/lib/node_modules/mocha/lib/runner.js:452:12 at next (/usr/lib/node_modules/mocha/lib/runner.js:299:14) at /usr/lib/node_modules/mocha/lib/runner.js:309:7 at next (/usr/lib/node_modules/mocha/lib/runner.js:247:23) at /usr/lib/node_modules/mocha/lib/runner.js:271:7 at done (/usr/lib/node_modules/mocha/lib/runnable.js:185:5) at callFn (/usr/lib/node_modules/mocha/lib/runnable.js:228:7) at Hook.Runnable.run (/usr/lib/node_modules/mocha/lib/runnable.js:216:7) at next (/usr/lib/node_modules/mocha/lib/runner.js:259:10) at Immediate. (/usr/lib/node_modules/mocha/lib/runner.js:276:5) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5) error: Bad exit status from /var/tmp/rpm-tmp.bo7DT9 (%check) Bad exit status from /var/tmp/rpm-tmp.bo7DT9 (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/nodejs-supports-color.spec