[DRE-commits] [ruby-listen] 02/04: do not run arch-specific tests on non Linux arches

Cédric Boutillier boutil at moszumanska.debian.org
Sun Jan 26 20:33:43 UTC 2014


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

boutil pushed a commit to branch master
in repository ruby-listen.

commit 56bd0d8827131f19b0971356e2f3cc0b3bb71b33
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sun Jan 26 19:37:51 2014 +0100

    do not run arch-specific tests on non Linux arches
---
 .../patches/deactivate_arch_specific_tests.patch   | 42 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 43 insertions(+)

diff --git a/debian/patches/deactivate_arch_specific_tests.patch b/debian/patches/deactivate_arch_specific_tests.patch
new file mode 100644
index 0000000..1ff2f21
--- /dev/null
+++ b/debian/patches/deactivate_arch_specific_tests.patch
@@ -0,0 +1,42 @@
+Description: deactivate arch specific specs on non linux arches
+ some tests require arch-specific backends (rb-inotify on Linux,
+ rb-kqueue on BSD). They need to be deactivated at least as long as all
+ arch-specific backends are packaged (and if they are arch-all). 
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2014-01-26
+
+--- a/spec/lib/listen/adapter/bsd_spec.rb
++++ b/spec/lib/listen/adapter/bsd_spec.rb
+@@ -11,7 +11,7 @@
+         expect(described_class).to be_usable
+       end
+ 
+-      it 'requires rb-kqueue and find gem' do
++      xit 'requires rb-kqueue and find gem' do
+         described_class.usable?
+         expect(defined?(KQueue)).to be_true
+         expect(defined?(Find)).to be_true
+--- a/spec/acceptance/listen_spec.rb
++++ b/spec/acceptance/listen_spec.rb
+@@ -22,14 +22,18 @@
+     context "with change block raising" do
+       let(:callback) { ->(x,y,z) { raise 'foo' } }
+ 
+-      it "warns the backtrace" do
++      xit "warns the backtrace" do
+         expect(Kernel).to receive(:warn).with("[Listen warning]: Change block raised an exception: foo")
+         expect(Kernel).to receive(:warn).with(/^Backtrace:.*/)
+         listen { touch 'file.rb' }
+       end
+     end
+ 
+-    [false, true].each do |polling|
++    if RbConfig::CONFIG['target_os'] =~ /linux/i
++      [false, true]
++    else
++      [true]
++    end.each do |polling|
+       context "force_polling option to #{polling}" do
+         let(:options) { { force_polling: polling, latency: 0.1 } }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 4c8f73f..74a9f0e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 #mark_unstable_test_pending
 #circumvent-dependency-manager
 retry_three_times.patch
+deactivate_arch_specific_tests.patch

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



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