[DRE-commits] [ruby-neovim] 01/01: ajust $HOME to make tests work using autopkgtest
Jason Pleau
jpleau-guest at moszumanska.debian.org
Fri Nov 24 03:38:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpleau-guest pushed a commit to branch master
in repository ruby-neovim.
commit 2bd3149bd1b37b9d8e267d9afe0f25528a892813
Author: Jason Pleau <jason at jpleau.ca>
Date: Thu Nov 23 22:38:24 2017 -0500
ajust $HOME to make tests work using autopkgtest
---
debian/ruby-tests.rake | 4 +++-
debian/rules | 4 ----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index bdfc6e8..a99423e 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,6 +1,8 @@
require 'gem2deb/rake/spectask'
-ENV["HOME"] = File.dirname(__FILE__) + "/fakehome"
+fakehome = File.dirname(__FILE__) + "/fakehome"
+Dir.mkdir(fakehome) unless File.exists?(fakehome)
+ENV["HOME"] = fakehome
Gem2Deb::Rake::RSpecTask.new do |spec|
spec.pattern = './spec/**/*_spec.rb'
diff --git a/debian/rules b/debian/rules
index 4ace0af..3454d59 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,3 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies
%:
dh $@ --buildsystem=ruby --with ruby
-
-override_dh_auto_test:
- mkdir -p $(CURDIR)/debian/fakehome
- dh_auto_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-neovim.git
More information about the Pkg-ruby-extras-commits
mailing list