[DRE-commits] [ruby-zip] 01/03: Don't use home directory while in tests

Antonio Terceiro terceiro at moszumanska.debian.org
Fri Sep 5 18:41:28 UTC 2014


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

terceiro pushed a commit to branch master
in repository ruby-zip.

commit fa9bbd8e4e0315f9b632f5b45e29b85d284e0286
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Sep 5 15:06:37 2014 -0300

    Don't use home directory while in tests
---
 debian/patches/dont-use-home.patch | 12 ++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 13 insertions(+)

diff --git a/debian/patches/dont-use-home.patch b/debian/patches/dont-use-home.patch
new file mode 100644
index 0000000..bbfa766
--- /dev/null
+++ b/debian/patches/dont-use-home.patch
@@ -0,0 +1,12 @@
+--- a/test/file_test.rb
++++ b/test/file_test.rb
+@@ -18,9 +18,6 @@ class ZipFileTest < MiniTest::Unit::Test
+     end
+ 
+     ::File.open(EMPTY_FILENAME, 'wb') { |file| file.write buffer.string }
+-    # Not sure if the following line was just accidentally left in, but
+-    # it's not related to the tests and breaks on windows
+-    `cp #{EMPTY_FILENAME} ~/test.zip` unless Zip::RUNNING_ON_WINDOWS
+ 
+     zfRead = ::Zip::File.new(EMPTY_FILENAME)
+     assert_equal(comment, zfRead.comment)
diff --git a/debian/patches/series b/debian/patches/series
index 6b97100..5a749b4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 ignore-simplecov.diff
+dont-use-home.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-zip.git



More information about the Pkg-ruby-extras-commits mailing list