[DRE-commits] [ohai] 05/06: add patch to mark 2 test cases that are Windows-specific as such
Antonio Terceiro
terceiro at moszumanska.debian.org
Mon Sep 19 18:07:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ohai.
commit 0e652cb390b635282ae238519410ad2611702dff
Author: Antonio Terceiro <terceiro at debian.org>
Date: Mon Sep 19 14:43:15 2016 -0300
add patch to mark 2 test cases that are Windows-specific as such
---
debian/changelog | 1 +
.../0003-Mark-Windows-only-tests-as-such.patch | 35 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 37 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 32b364e..63d213b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ ohai (8.20.0-1) UNRELEASED; urgency=medium
- a bunch of dependencies updates
- updated homepage
- updated debian/ruby-tests.rake to latest version
+ * add patch to mark 2 test cases that are Windows-specific as such
-- Antonio Terceiro <terceiro at debian.org> Mon, 19 Sep 2016 13:53:28 -0300
diff --git a/debian/patches/0003-Mark-Windows-only-tests-as-such.patch b/debian/patches/0003-Mark-Windows-only-tests-as-such.patch
new file mode 100644
index 0000000..da85bcc
--- /dev/null
+++ b/debian/patches/0003-Mark-Windows-only-tests-as-such.patch
@@ -0,0 +1,35 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Mon, 19 Sep 2016 14:42:35 -0300
+Subject: Mark Windows-only tests as such
+
+---
+ spec/unit/plugins/windows/cpu_spec.rb | 2 +-
+ spec/unit/plugins/windows/virtualization_spec.rb | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/spec/unit/plugins/windows/cpu_spec.rb b/spec/unit/plugins/windows/cpu_spec.rb
+index 313104b..fdb65c3 100644
+--- a/spec/unit/plugins/windows/cpu_spec.rb
++++ b/spec/unit/plugins/windows/cpu_spec.rb
+@@ -55,7 +55,7 @@ shared_examples "a cpu" do |cpu_no|
+ end
+ end
+
+-describe Ohai::System, "Windows cpu plugin" do
++describe Ohai::System, "Windows cpu plugin", :windows_only do
+ before(:each) do
+ @plugin = get_plugin("windows/cpu")
+ allow(@plugin).to receive(:collect_os).and_return(:windows)
+diff --git a/spec/unit/plugins/windows/virtualization_spec.rb b/spec/unit/plugins/windows/virtualization_spec.rb
+index 124e92f..4f25691 100644
+--- a/spec/unit/plugins/windows/virtualization_spec.rb
++++ b/spec/unit/plugins/windows/virtualization_spec.rb
+@@ -20,7 +20,7 @@
+
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
+
+-describe Ohai::System, "Windows virtualization platform" do
++describe Ohai::System, "Windows virtualization platform", :windows_only do
+ let(:plugin) { get_plugin("windows/virtualization") }
+
+ before(:each) do
diff --git a/debian/patches/series b/debian/patches/series
index 7fb4840..7f3fa34 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Drop-dependency-on-wmi-lite.patch
0002-Remove-relative-references-for-source-code-in-tests.patch
+0003-Mark-Windows-only-tests-as-such.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ohai.git
More information about the Pkg-ruby-extras-commits
mailing list