[DRE-commits] [yard] 12/13: debian/ruby-tests.rake: set HOME to build directory
Antonio Terceiro
terceiro at moszumanska.debian.org
Fri Jan 13 09:54:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository yard.
commit 652cdb67134a2c0a73163bdf2e43c2e825e12a6c
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Jan 12 21:49:32 2017 -0200
debian/ruby-tests.rake: set HOME to build directory
---
...lobal-configuration-directory-to-tmp-duri.patch | 39 ----------------------
debian/patches/series | 1 -
debian/ruby-tests.rake | 2 ++
3 files changed, 2 insertions(+), 40 deletions(-)
diff --git a/debian/patches/0004-move-YARD-global-configuration-directory-to-tmp-duri.patch b/debian/patches/0004-move-YARD-global-configuration-directory-to-tmp-duri.patch
deleted file mode 100644
index 5dbc533..0000000
--- a/debian/patches/0004-move-YARD-global-configuration-directory-to-tmp-duri.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil at debian.org>
-Date: Tue, 10 Jan 2017 18:18:21 -0200
-Subject: move YARD global configuration directory to tmp/ during specs
-
-The specs try to write in this directory. The default location is in $HOME
-which is undefined and causes build failures with sbuild.
-
-Forwarded: no
-Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738409
-Last-Update: 2017-01-10
----
- spec/config_spec.rb | 13 +++++++++++++
- 1 file changed, 13 insertions(+)
-
-diff --git a/spec/config_spec.rb b/spec/config_spec.rb
-index 2f4435f..3195863 100644
---- a/spec/config_spec.rb
-+++ b/spec/config_spec.rb
-@@ -1,7 +1,20 @@
- # frozen_string_literal: true
- require 'yaml'
-+require 'tmpdir'
-
- RSpec.describe YARD::Config do
-+
-+ before :all do
-+ YARD::Config::CONFIG_DIR=Dir.mktmpdir
-+ YARD::Config::CONFIG_FILE=File.join(CONFIG_DIR, 'config')
-+ end
-+
-+ after :all do
-+ Dir.rmdir(YARD::Config::CONFIG_DIR)
-+ YARD::Config::CONFIG_DIR=File.expand_path('~/.yard')
-+ YARD::Config::CONFIG_FILE=File.join(CONFIG_DIR, 'config')
-+ end
-+
- describe ".load" do
- before do
- expect(File).to receive(:file?).twice.with(CLI::Yardoc::DEFAULT_YARDOPTS_FILE).and_return(false)
diff --git a/debian/patches/series b/debian/patches/series
index e7b63da..2f7c55b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,4 @@
0001-remove-timestamps-where-possible-for-reproducible-bu.patch
0002-Prevent-possible-privacy-breach-with-distant-images.patch
0003-spec-avoid-writing-to-file-shipped-with-upstream-sou.patch
-0004-move-YARD-global-configuration-directory-to-tmp-duri.patch
0005-spec-add-missing-require-spec_helper.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index cf1591e..c50381e 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,5 +1,7 @@
require 'gem2deb/rake/spectask'
+ENV['HOME'] = Dir.pwd
+
Gem2Deb::Rake::RSpecTask.new do |spec|
spec.pattern = './spec/**/*_spec.rb'
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/yard.git
More information about the Pkg-ruby-extras-commits
mailing list