[Machinery] Help passing unit tests

Aaron Wilson machinery at noraa.org.uk
Fri Jul 24 05:27:18 MDT 2015


Dear All,

I've installed machinery into a development environment following the 
README.md in the github repository, but can't make the unit tests
pass (on both openSUSE 13.1 and 13.2).

There is a minor error in the README.md file, in that you need to install:
    libvirt-devel
in order for the Gems to build. However, I can now run machinery
itself, but the unit tests run via:

   rake spec:unit

fail to run.  The error is below, but the problem seems to be that
running `bundle install` has put the rodf library into my home directory,
rather than installing this into the system library path (as with the
other gems).

Can anyone tell me the way to get rodf installed into the system
library path ? 

Thanks,
aaron


Error (from opensuse 13.2):

/usr/bin/ruby.ruby2.1 -I/usr/lib64/ruby/gems/2.1.0/gems/rspec-support-3.2.2/lib:/usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb  --exclude-pattern spec/integration/\*\*/\*
I, [2015-07-24T12:25:03.315491 #12702]  INFO -- : Not reporting to Code Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set.
/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- odf/spreadsheet (LoadError)
	from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /home/aaron/github.com/SUSE/machinery/tools/support_matrix/lib/support_matrix/ods_formatter.rb:1:in `<top (required)>'
	from /home/aaron/github.com/SUSE/machinery/tools/support_matrix/lib/support_matrix.rb:2:in `require_relative'
	from /home/aaron/github.com/SUSE/machinery/tools/support_matrix/lib/support_matrix.rb:2:in `<top (required)>'
	from /home/aaron/github.com/SUSE/machinery/spec/unit/spec_helper.rb:24:in `require_relative'
	from /home/aaron/github.com/SUSE/machinery/spec/unit/spec_helper.rb:24:in `<top (required)>'
	from /home/aaron/github.com/SUSE/machinery/spec/helper/merge_users_and_groups_spec.rb:18:in `require_relative'
	from /home/aaron/github.com/SUSE/machinery/spec/helper/merge_users_and_groups_spec.rb:18:in `<top (required)>'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1226:in `load'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1226:in `block in load_spec_files'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1224:in `each'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1224:in `load_spec_files'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:97:in `setup'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:85:in `run'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:70:in `run'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:38:in `invoke'
	from /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/exe/rspec:4:in `<main>'
/usr/bin/ruby.ruby2.1 -I/usr/lib64/ruby/gems/2.1.0/gems/rspec-support-3.2.2/lib:/usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/lib /usr/lib64/ruby/gems/2.1.0/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb  --exclude-pattern spec/integration/\*\*/\* failed


More information about the Machinery mailing list