Your message dated Sun, 23 Jun 2019 18:20:06 +0200
with message-id <01901e61-1abe-2f83-f499-9444f8d71...@debian.org>
and subject line Re: [Pkg-javascript-devel] Bug#930963: node-d3-queue 
autopkgtest failure because of not copying entire source tree
has caused the Debian Bug report #930963,
regarding node-d3-queue autopkgtest failure because of not copying entire 
source tree
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
930963: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930963
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Le 23/06/2019 à 18:04, Pirate Praveen a écrit :
> 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'
> }

Hi,

you can use debian/tests/pkg-js/files to specify which files are needed
for test. See my change here:
https://salsa.debian.org/js-team/node-d3-queue/commit/0acb515

Cheers,
Xavier

--- End Message ---
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to