[DRE-commits] [ruby-elasticsearch] 01/01: Disable extra bits of profiling from test suite
Tim Potter
tpot-guest at moszumanska.debian.org
Mon Sep 22 02:42:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
tpot-guest pushed a commit to branch master
in repository ruby-elasticsearch.
commit 8c42057fb9749e6a88f262747cc7e1c8dd67eb4f
Author: Tim Potter <tpot at hp.com>
Date: Mon Sep 22 12:38:35 2014 +1000
Disable extra bits of profiling from test suite
---
debian/patches/really-disable-ruby-prof.patch | 34 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 35 insertions(+)
diff --git a/debian/patches/really-disable-ruby-prof.patch b/debian/patches/really-disable-ruby-prof.patch
new file mode 100644
index 0000000..9a46b97
--- /dev/null
+++ b/debian/patches/really-disable-ruby-prof.patch
@@ -0,0 +1,34 @@
+Index: ruby-elasticsearch/elasticsearch-extensions/lib/elasticsearch/extensions/test/profiling.rb
+===================================================================
+--- ruby-elasticsearch.orig/elasticsearch-extensions/lib/elasticsearch/extensions/test/profiling.rb
++++ ruby-elasticsearch/elasticsearch-extensions/lib/elasticsearch/extensions/test/profiling.rb
+@@ -1,4 +1,4 @@
+-require 'ruby-prof'
++require 'ruby-prof' if ENV["REQUIRE_PROF"]
+ require 'benchmark'
+ require 'ansi'
+
+Index: ruby-elasticsearch/elasticsearch/test/test_helper.rb
+===================================================================
+--- ruby-elasticsearch.orig/elasticsearch/test/test_helper.rb
++++ ruby-elasticsearch/elasticsearch/test/test_helper.rb
+@@ -36,7 +36,9 @@ RequireProf.print_timing_infos if ENV["R
+ if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
+ require 'elasticsearch/extensions/test/cluster'
+ require 'elasticsearch/extensions/test/startup_shutdown'
+- require 'elasticsearch/extensions/test/profiling' unless JRUBY
++ if ENV["REQUIRE_PROF"]
++ require 'elasticsearch/extensions/test/profiling' unless JRUBY
++ end
+ end
+
+ module Elasticsearch
+@@ -52,7 +54,7 @@ module Elasticsearch
+ module Test
+ class ProfilingTest < ::Test::Unit::TestCase
+ extend Elasticsearch::Extensions::Test::StartupShutdown
+- extend Elasticsearch::Extensions::Test::Profiling
++ extend Elasticsearch::Extensions::Test::Profiling if ENV["REQUIRE_PROF"]
+
+ shutdown { Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] && started? && Elasticsearch::Extensions::Test::Cluster.running? }
+ context "IntegrationTest" do; should "noop on Ruby 1.8" do; end; end if RUBY_1_8
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9933a0d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+really-disable-ruby-prof.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-elasticsearch.git
More information about the Pkg-ruby-extras-commits
mailing list