rpms/ruby-libvirt/EL-5 test-sort-list.patch, NONE, 1.1 ruby-libvirt.spec, 1.9, 1.10
David Lutterkort
lutter at fedoraproject.org
Tue Nov 18 14:56:25 UTC 2008
Author: lutter
Update of /cvs/pkgs/rpms/ruby-libvirt/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12461/EL-5
Modified Files:
ruby-libvirt.spec
Added Files:
test-sort-list.patch
Log Message:
Added test-sort-list.patch to fix fragile test
test-sort-list.patch:
--- NEW FILE test-sort-list.patch ---
diff --git a/tests/tc_connect.rb b/tests/tc_connect.rb
--- a/tests/tc_connect.rb
+++ b/tests/tc_connect.rb
@@ -87,7 +87,7 @@
assert_equal(32, c.max_vcpus("bogus"))
assert(c.capabilities.size > 0)
assert_equal(2, c.num_of_domains)
- assert_equal([1, 2], c.list_domains)
+ assert_equal([1, 2], c.list_domains.sort)
assert_equal(0, c.num_of_defined_domains)
assert_equal([], c.list_defined_domains)
assert_equal(1, c.num_of_networks)
Index: ruby-libvirt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ruby-libvirt/EL-5/ruby-libvirt.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ruby-libvirt.spec 18 Nov 2008 14:17:12 -0000 1.9
+++ ruby-libvirt.spec 18 Nov 2008 14:55:55 -0000 1.10
@@ -3,13 +3,14 @@
Name: ruby-libvirt
Version: 0.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Ruby bindings for libvirt
Group: Development/Languages
License: LGPLv2+
URL: http://libvirt.org/ruby/
Source0: http://libvirt.org/ruby/download/ruby-libvirt-0.1.0.tgz
+Patch0: test-sort-list.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ruby ruby-devel rubygem(rake)
@@ -22,7 +23,7 @@
%prep
%setup -q
-
+%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
@@ -52,6 +53,9 @@
%changelog
+* Tue Nov 18 2008 David Lutterkort <lutter at redhat.com> - 0.1.0-2
+- Added test-sort-list.patch to fix fragile test
+
* Tue Nov 18 2008 David Lutterkort <lutter at redhat.com> - 0.1.0-1
- Remove no-capabilities-test.patch, since it's upstream now
More information about the scm-commits
mailing list