[Machinery] Help passing unit tests

Mauro Morales mamorales at suse.com
Fri Jul 24 07:45:57 MDT 2015


Hi Aaron,

Short answer: `bundle exec rake spec:unit`

Long answer:

The issue you see is caused because there is a gem specified on our 
Gemfile using the github: syntax which installs the gem on a bit of a 
different path than the one where all the other gems are installed right 
now.

For the moment you can run the commands with `bundle exec` in front and 
this will take every other scope into account. As soon as a PullRequest 
gets accepted into the Rodf gem, then this won't be necessary any more.

Thanks a lot for trying Machinery out and let us know if there is any 
other way we can make it better.

Cheers,

Mauro

On 07/24/2015 01:27 PM, Aaron Wilson wrote:
> 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
> _______________________________________________
> Machinery mailing list
> Machinery at lists.suse.com
> http://lists.suse.com/mailman/listinfo/machinery



More information about the Machinery mailing list