[DRE-commits] [nanoc] 05/06: add skip_tests_autopkgtest.patch to improve autopkgtest results

Cédric Boutillier boutil at moszumanska.debian.org
Mon Jun 6 15:53:43 UTC 2016


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

boutil pushed a commit to branch master
in repository nanoc.

commit e159ef6188d366fc674d407db6ca9ac96c907634
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Jun 6 15:19:23 2016 +0200

    add skip_tests_autopkgtest.patch to improve autopkgtest results
---
 debian/patches/series                       |  1 +
 debian/patches/skip_tests_autopkgtest.patch | 42 +++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index ec3e022..ce10b99 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ no_vcr.patch
 set-load_paths-for-sass-tests.patch
 filter_out_nil_gemspec.patch
 encoding.patch
+skip_tests_autopkgtest.patch
diff --git a/debian/patches/skip_tests_autopkgtest.patch b/debian/patches/skip_tests_autopkgtest.patch
new file mode 100644
index 0000000..eb8fcf0
--- /dev/null
+++ b/debian/patches/skip_tests_autopkgtest.patch
@@ -0,0 +1,42 @@
+Description: skip tests which are failing in autopkgtest because of missing context
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Update: 2016-06-06
+
+--- a/test/base/test_context.rb
++++ b/test/base/test_context.rb
+@@ -21,5 +21,5 @@
+ 
+     # Run
+     assert_examples_correct 'Nanoc::Int::Context#initialize'
+-  end
++  end unless ENV["ADTTMP"]
+ end
+--- a/test/base/test_directed_graph.rb
++++ b/test/base/test_directed_graph.rb
+@@ -281,5 +281,5 @@
+   def test_example
+     YARD.parse(LIB_DIR + '/nanoc/base/directed_graph.rb')
+     assert_examples_correct 'Nanoc::Int::DirectedGraph'
+-  end
++  end unless ENV["ADTTMP"]
+ end
+--- a/test/cli/test_cli.rb
++++ b/test/cli/test_cli.rb
+@@ -130,7 +130,7 @@
+     Nanoc::CLI.load_command_at(root_dir + '/lib/nanoc/cli/commands/create-site.rb')
+   ensure
+     Encoding.default_external = Encoding::UTF_8
+-  end
++  end unless ENV["ADTTMP"]
+ 
+   def test_after_setup
+     $after_setup_success = false
+--- a/test/helpers/test_link_to.rb
++++ b/test/helpers/test_link_to.rb
+@@ -50,4 +50,4 @@
+     # Run
+     assert_examples_correct 'Nanoc::Helpers::LinkTo#relative_path_to'
+   end
+-end
++end unless ENV["ADTTMP"]

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



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