[Pkg-javascript-commits] [node-fined] 01/01: Set a different $HOME for build-time tests

Paolo Greppi paolog-guest at moszumanska.debian.org
Tue Dec 20 07:20:09 UTC 2016


This is an automated email from the git hooks/post-receive script.

paolog-guest pushed a commit to branch master
in repository node-fined.

commit 0b59ccfe11dee4e9f112c9aa19a5b92a6d991cb5
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Tue Dec 20 07:19:22 2016 +0000

    Set a different $HOME for build-time tests
---
 debian/changelog | 5 ++---
 debian/rules     | 5 ++++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8c987a1..80bf59a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,9 @@
 node-fined (1.0.2-2) unstable; urgency=medium
 
-  * Disable build-time tests since in an sbuild chroot HOME is set to
-    /sbuild-nonexistent (Closes: 848749)
+  * Set a different $HOME for build-time tests (Closes: 848749)
   * Skip a few tests that fail in the autopkgtest environment
 
- -- Paolo Greppi <paolo.greppi at libpf.com>  Tue, 20 Dec 2016 06:26:08 +0000
+ -- Paolo Greppi <paolo.greppi at libpf.com>  Tue, 20 Dec 2016 07:16:08 +0000
 
 node-fined (1.0.2-1) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index b5ef95d..102eeb0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,10 @@
 
 #override_dh_auto_build:
 
-#override_dh_auto_test:
+override_dh_auto_test:
+	mkdir -p test-home
+	HOME=$(shell pwd)/test-home mocha --async-only -R spec
+	rm -rf $(shell pwd)/test-home
 
 override_dh_clean:
 	dh_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-fined.git



More information about the Pkg-javascript-commits mailing list