[Pkg-javascript-devel] Bug#930963: node-d3-queue autopkgtest failure because of not copying entire source tree

Pirate Praveen praveen at onenetbeyond.org
Sun Jun 23 17:04:56 BST 2019


package: pkg-js-tools
version: 0.5
severity: important


In node-d3-queue salsa master, autopkgtest is failing. This is because 
the tests expects more files than 'test' directory to be present 
locally. In gem2deb, only lib directory is renamed to force using 
installed library. I think the same strategy can be used (remove only 
package.json#main).

# Copy test files
Launch debian/tests/pkg-js/test with sh
TAP version 13
# example queue of fs.stat
not ok 1 should be equal
  ---
    operator: equal
    expected: |-
      null
    actual: |-
      { [Error: ENOENT: no such file or directory, stat 
'/tmp/autopkgtest-lxc.gksjxq9s/downtmp/autopkgtest_tmp/smoke5njYFC/test/../README.md'] 
errno: -2, code: 'ENOENT', syscall: 'stat', path: 
'/tmp/autopkgtest-lxc.gksjxq9s/downtmp/autopkgtest_tmp/smoke5njYFC/test/../README.md' 
}
    at: callback 
(/tmp/autopkgtest-lxc.gksjxq9s/downtmp/autopkgtest_tmp/smoke5njYFC/test/queue-test.js:17:10)
    stack: |-
      Error: ENOENT: no such file or directory, stat 
'/tmp/autopkgtest-lxc.gksjxq9s/downtmp/autopkgtest_tmp/smoke5njYFC/test/../README.md'
  ...
/tmp/autopkgtest-lxc.gksjxq9s/downtmp/autopkgtest_tmp/smoke5njYFC/test/queue-test.js:18
    test.ok(one.size > 0);
                ^

TypeError: Cannot read property 'size' of undefined
    at callback 
(/tmp/autopkgtest-lxc.gksjxq9s/downtmp/autopkgtest_tmp/smoke5njYFC/test/queue-test.js:18:17)
    at Queue._call (/usr/lib/nodejs/d3-queue/build/d3-queue.js:142:16)
    at maybeNotify (/usr/lib/nodejs/d3-queue/build/d3-queue.js:223:7)
    at _abort (/usr/lib/nodejs/d3-queue/build/d3-queue.js:216:3)
    at /usr/lib/nodejs/d3-queue/build/d3-queue.js:189:7
    at FSReqWrap.oncomplete (fs.js:154:21)
autopkgtest [20:39:40]: test command2: -----------------------]
autopkgtest [20:39:41]: test command2: - - - - - - - - - - results - - 
- - - - - - - -
command2 FAIL non-zero exit status 1



More information about the Pkg-javascript-devel mailing list