[Pkg-javascript-devel] Bug#848749: disable build-time tests

Pirate Praveen praveen at onenetbeyond.org
Tue Dec 20 06:41:33 UTC 2016


On ചൊവ്വ 20 ഡിസംബര്‍ 2016 12:03 വൈകു, Paolo Greppi wrote:
> Il looks like node-expand-tilde returns a directory which does not exist
> (sbuild-nonexistent) at this line in
> node-fined/test/utils/get-userhome-file.js:
> var userHomeDir = expandTilde('~');
> 
> This in turn triggers the exception in the next line:
> var userHomeFiles = fs.readdirSync(userHomeDir);
> 
> Google tells me that in an sbuild chroot HOME is indeed set to
> /sbuild-nonexistent.

... because debian policy prevents writing to $HOME during build and
sbuild enforces it by setting it to a non existing directory.

> Node-expand-tilde has build and autopkgtests turned on, but they pass
> because they do not check that the returned dir exist, only that they
> are consistent !
> 
> I guess we have no choice but to disable build tests. I have done so in
> the repo on alioth, autopkgtests are still on (although I had to disable
> a few also related to tilde expansion).

See node-v8flags for setting a different $HOME for tests


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20161220/a5b6693f/attachment.sig>


More information about the Pkg-javascript-devel mailing list