Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/nodeunit.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-e43042df8956617f0d4ea6368f35270fe8968223/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/nodeunit.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/nodeunit-0.8.6-5.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/nodeunit.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-e43042df8956617f0d4ea6368f35270fe8968223/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/nodeunit.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.abo0Wk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/nodeunit-0.8.6.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 deps/ + rm -f lib/assert.js Patch #0 (nodeunit-0.8.6-Load-system-modules.patch): + echo 'Patch #0 (nodeunit-0.8.6-Load-system-modules.patch):' + /usr/bin/cat /builddir/build/SOURCES/nodeunit-0.8.6-Load-system-modules.patch + /usr/bin/patch -p1 --fuzz=0 patching file bin/nodeunit patching file examples/browser/nodeunit.js patching file lib/core.js patching file lib/nodeunit.js patching file lib/reporters/junit.js patching file lib/types.js patching file lib/utils.js patching file test/test-base.js Patch #1 (nodeunit-0.8.6-Use-system-assert.js.patch): + echo 'Patch #1 (nodeunit-0.8.6-Use-system-assert.js.patch):' + /usr/bin/cat /builddir/build/SOURCES/nodeunit-0.8.6-Use-system-assert.js.patch + /usr/bin/patch -p1 --fuzz=0 patching file lib/nodeunit.js patching file lib/reporters/default.js patching file lib/reporters/eclipse.js patching file lib/reporters/machineout.js patching file lib/reporters/nested.js patching file lib/reporters/verbose.js patching file lib/types.js patching file test/test-bettererrors.js + /usr/lib/rpm/nodejs-fixdep async '~0.2' + /usr/lib/rpm/nodejs-fixdep console.log '~0.1' + /usr/lib/rpm/nodejs-fixdep ejs '~1.0' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dMlhgt + umask 022 + cd /builddir/build/BUILD + cd package + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.mc8hoB + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch ++ dirname /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch + cd package + mkdir -p /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/lib/node_modules/nodeunit + cp -pr package.json index.js lib/ /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/lib/node_modules/nodeunit + install -p -D -m0755 bin/nodeunit /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/lib/node_modules/nodeunit/bin/nodeunit + mkdir -p /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/bin + ln -sf /usr/lib/node_modules/nodeunit/bin/nodeunit /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/bin/nodeunit + install -p -D -m0644 man1/nodeunit.1 /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/share/man/man1/nodeunit.1 + mkdir -p /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/share/nodeunit/bin + install -p -D -m0644 bin/nodeunit.json /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/share/nodeunit/bin/nodeunit.json + cp -pr share/ /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/share/nodeunit + mkdir -p /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/lib/node_modules/nodeunit/bin + ln -sf /usr/share/nodeunit/bin/nodeunit.json /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/lib/node_modules/nodeunit/bin/nodeunit.json + ln -sf /usr/share/nodeunit/share /builddir/build/BUILDROOT/nodeunit-0.8.6-5.el7.noarch/usr/lib/node_modules/nodeunit/share + /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.2H2VmO + umask 022 + cd /builddir/build/BUILD + cd package + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules --check + rm -f test/test-httputil.js + /usr/bin/node ./bin/nodeunit test --reporter tap TAP version 13 # testCalled # testOk # testEquals # testSame # testEqual # testNotEqual # testDeepEqual # testNotDeepEqual # testStrictEqual # testNotStrictEqual # testThrows # testThrowsWithReGex # testThrowsWithErrorValidation # testDoesNotThrows # testIfError # testExpect ok 1 (unnamed assert) ok 2 (unnamed assert) ok 3 (unnamed assert) ok 4 (unnamed assert) ok 5 (unnamed assert) ok 6 (unnamed assert) # testEqual # testAssertThrows # testErrorIsNotAssertion # run test suite using absolute path ok 7 (unnamed assert) ok 8 (unnamed assert) # testFailingLog ok 9 log called ok 10 failures ok 11 total # testFailingTestDone ok 12 failures ok 13 total # testAssertionObj ok 14 assertion.passed ok 15 assertion.failed ok 16 failures ok 17 total # testLogOptional ok 18 failures ok 19 total # testExpectWithFailure ok 20 assertion.method ok 21 failures ok 22 total # testRunFiles ok 23 (unnamed assert) ok 24 (unnamed assert) ok 25 (unnamed assert) ok 26 (unnamed assert) ok 27 (unnamed assert) ok 28 (unnamed assert) ok 29 (unnamed assert) ok 30 (unnamed assert) ok 31 (unnamed assert) ok 32 (unnamed assert) ok 33 (unnamed assert) ok 34 (unnamed assert) ok 35 (unnamed assert) ok 36 (unnamed assert) ok 37 (unnamed assert) ok 38 (unnamed assert) ok 39 (unnamed assert) ok 40 (unnamed assert) ok 41 (unnamed assert) ok 42 (unnamed assert) ok 43 failures ok 44 length ok 45 (unnamed assert) ok 46 mock_module1 ran ok 47 mock_module2 ran ok 48 mock_module3 ran ok 49 mock_module4 ran ok 50 (unnamed assert) # testRunFilesEmpty ok 51 failures ok 52 length ok 53 (unnamed assert) # testEmptyDir not ok 54 path.exists is not a function --- type: TypeError message: path.exists is not a function code: ~ errno: ~ file: /builddir/build/BUILD/package/test/test-runfiles.js line: 119 column: 10 stack: - Object.exports.testEmptyDir (/builddir/build/BUILD/package/test/test-runfiles.js:119:10) - Object. (/builddir/build/BUILD/package/lib/core.js:236:16) - /builddir/build/BUILD/package/lib/core.js:236:16 - Object.exports.runTest (/builddir/build/BUILD/package/lib/core.js:70:9) - /builddir/build/BUILD/package/lib/core.js:118:25 - /usr/lib/node_modules/async/lib/async.js:606:13 - iterate (/usr/lib/node_modules/async/lib/async.js:134:13) - /usr/lib/node_modules/async/lib/async.js:145:25 - /usr/lib/node_modules/async/lib/async.js:608:17 - /builddir/build/BUILD/package/lib/types.js:146:17 wanted: ~ found: ~ ... # testRunModule ok 55 testStart called with test name ok 56 testReady called with non-test object ok 57 testReady called with non-test object ok 58 testReady called with non-test object ok 59 testReady called with non-test object ok 60 testReady called with non-test object ok 61 testReady called with non-test object ok 62 testReady called with non-test object ok 63 testReady called with non-test object ok 64 testReady called with non-test object ok 65 testReady called with non-test object ok 66 testReady called with non-test object ok 67 testReady called with non-test object ok 68 testReady called with non-test object ok 69 testReady called with non-test object ok 70 testReady called with non-test object ok 71 testReady called with non-test object ok 72 testDone called with test name ok 73 testStart called with test name ok 74 testReady called with non-test object ok 75 testReady called with non-test object ok 76 testReady called with non-test object ok 77 testReady called with non-test object ok 78 testReady called with non-test object ok 79 testReady called with non-test object ok 80 testReady called with non-test object ok 81 testReady called with non-test object ok 82 testReady called with non-test object ok 83 testReady called with non-test object ok 84 testReady called with non-test object ok 85 testReady called with non-test object ok 86 testReady called with non-test object ok 87 testReady called with non-test object ok 88 testReady called with non-test object ok 89 testReady called with non-test object ok 90 testDone called with test name ok 91 testStart called with test name ok 92 testReady called with non-test object ok 93 testReady called with non-test object ok 94 testReady called with non-test object ok 95 testReady called with non-test object ok 96 testReady called with non-test object ok 97 testReady called with non-test object ok 98 testReady called with non-test object ok 99 testReady called with non-test object ok 100 testReady called with non-test object ok 101 testReady called with non-test object ok 102 testReady called with non-test object ok 103 testReady called with non-test object ok 104 testReady called with non-test object ok 105 testReady called with non-test object ok 106 testReady called with non-test object ok 107 testReady called with non-test object ok 108 testDone called with test name ok 109 (unnamed assert) ok 110 (unnamed assert) ok 111 (unnamed assert) ok 112 (unnamed assert) ok 113 (unnamed assert) # testRunModuleTestSpec ok 114 testStart called with test name ok 115 testReady called with non-test object ok 116 testReady called with non-test object ok 117 testReady called with non-test object ok 118 testReady called with non-test object ok 119 testReady called with non-test object ok 120 testReady called with non-test object ok 121 testReady called with non-test object ok 122 testReady called with non-test object ok 123 testReady called with non-test object ok 124 testReady called with non-test object ok 125 testReady called with non-test object ok 126 testReady called with non-test object ok 127 testReady called with non-test object ok 128 testReady called with non-test object ok 129 testReady called with non-test object ok 130 testReady called with non-test object ok 131 testDone called with test name ok 132 (unnamed assert) ok 133 (unnamed assert) ok 134 (unnamed assert) ok 135 (unnamed assert) # testRunModuleEmpty ok 136 (unnamed assert) ok 137 (unnamed assert) ok 138 (unnamed assert) ok 139 (unnamed assert) # testNestedTests ok 140 (unnamed assert) # testArgs ok 141 test.expect ok 142 test.done ok 143 test.ok ok 144 test.same ok 145 test.equals # testDoneCallback ok 146 failures ok 147 length ok 148 (unnamed assert) ok 149 (unnamed assert) # testThrowError ok 150 assertion.error ok 151 (unnamed assert) ok 152 (unnamed assert) # testSimpleSandbox ok 153 evaluation ok # testSandboxContext ok 154 the variable should not be defined # testSandboxMultiple ok 155 two files loaded # testTestCase ok 156 in setUp, this.one not set ok 157 in test1, this.one is 1 ok 158 tearDown called ok 159 in setUp, this.one not set ok 160 in test2, this.one is still 1 ok 161 tearDown called ok 162 (unnamed assert) # tearDownAfterError ok 163 tearDown called # catchSetUpError ok 164 (unnamed assert) ok 165 (unnamed assert) # setUpErrorCallback ok 166 (unnamed assert) ok 167 (unnamed assert) # catchTearDownError ok 168 (unnamed assert) ok 169 (unnamed assert) # tearDownErrorCallback ok 170 (unnamed assert) ok 171 (unnamed assert) # testErrorAndtearDownError ok 172 (unnamed assert) ok 173 (unnamed assert) ok 174 (unnamed assert) # testCaseGroups ok 175 (unnamed assert) # nestedTestCases ok 176 (unnamed assert) # deepNestedTestCases ok 177 (unnamed assert) ok 178 (unnamed assert) # testTestCase ok 179 (unnamed assert) ok 180 (unnamed assert) ok 181 tearDown called ok 182 (unnamed assert) ok 183 (unnamed assert) ok 184 tearDown called ok 185 (unnamed assert) # tearDownAfterError ok 186 tearDown called # catchSetUpError ok 187 (unnamed assert) ok 188 (unnamed assert) # setUpErrorCallback ok 189 (unnamed assert) ok 190 (unnamed assert) # catchTearDownError ok 191 (unnamed assert) ok 192 (unnamed assert) # tearDownErrorCallback ok 193 (unnamed assert) ok 194 (unnamed assert) # testErrorAndtearDownError ok 195 (unnamed assert) ok 196 (unnamed assert) ok 197 (unnamed assert) # testCaseGroups ok 198 (unnamed assert) # nestedTestCases ok 199 (unnamed assert) # deepNestedTestCases ok 200 (unnamed assert) ok 201 (unnamed assert) 1..201 # tests 201 # pass 200 # fail 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.2H2VmO (%check) Bad exit status from /var/tmp/rpm-tmp.2H2VmO (%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/nodeunit.spec