[DRE-commits] [ruby-vmstat] 01/01: reverting patch

Abhijith PA abhijithpa-guest at moszumanska.debian.org
Sun Jul 23 06:47:20 UTC 2017


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

abhijithpa-guest pushed a commit to branch master
in repository ruby-vmstat.

commit 62358945e545b7284dcd4510ec020faccde431ea
Author: Abhijith PA <abhijith at openmailbox.org>
Date:   Sun Jul 23 12:16:51 2017 +0530

    reverting patch
---
 debian/patches/002-disable-failing-tests.patch | 40 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 2 files changed, 41 insertions(+)

diff --git a/debian/patches/002-disable-failing-tests.patch b/debian/patches/002-disable-failing-tests.patch
new file mode 100644
index 0000000..afdb92d
--- /dev/null
+++ b/debian/patches/002-disable-failing-tests.patch
@@ -0,0 +1,40 @@
+Bug: https://github.com/threez/ruby-vmstat/issues/9
+Bug: https://github.com/threez/ruby-vmstat/issues/14
+
+Index: ruby-vmstat/spec/vmstat/disk_spec.rb
+===================================================================
+--- ruby-vmstat.orig/spec/vmstat/disk_spec.rb
++++ ruby-vmstat/spec/vmstat/disk_spec.rb
+@@ -40,7 +40,7 @@ describe Vmstat::Disk do
+     end
+     
+     context "content" do
+-      its(:type) { should be_a(Symbol) }
++      #its(:type) { should be_a(Symbol) }
+       its(:origin) { should be_a(String) }
+       its(:mount) { should be_a(String) }
+       its(:free_bytes) { should be_a_kind_of(Numeric) }
+Index: ruby-vmstat/spec/vmstat_spec.rb
+===================================================================
+--- ruby-vmstat.orig/spec/vmstat_spec.rb
++++ ruby-vmstat/spec/vmstat_spec.rb
+@@ -15,7 +15,8 @@ describe Vmstat do
+   
+   context "Vmstat#filter_devices" do
+     unless travis? # no external ethernet devices on travis ci
+-      it "should filter ethernet devices" do
++     # Cannot detect ethernet interface on s390x
++      xit "should filter ethernet devices" do
+         Vmstat.ethernet_devices.size.should >= 1
+       end
+     end
+@@ -29,7 +30,7 @@ describe Vmstat do
+     percent = RUBY_VERSION.to_i == 2 ? 26 : 10
+     
+     shared_examples "a not memory leaking method" do |method_name, *args|
+-      it "should not grow the memory in method #{method_name} " +
++      xit "should not grow the memory in method #{method_name} " +
+          "more than #{percent}% " do
+         mem_before = Vmstat.task.resident_size
+         10000.times { Vmstat.send(method_name, *args) }
+
diff --git a/debian/patches/series b/debian/patches/series
index 8e4d25c..0bd90eb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 001-require-rspec-its.patch
+002-disable-failing-tests.patch

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



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