[chef] Chef Run Errors with Minitest-Handler


Chronological Thread 
  • From: Torben Knerr < >
  • To: " " < >
  • Subject: [chef] Chef Run Errors with Minitest-Handler
  • Date: Sun, 2 Dec 2012 22:15:13 +0100

Hi everybody, 

I'm using the minitest-handler cookbook. The tests pass and the chef run seems to be successful in the end, but there are lots of errors logged to stdoud, e.g.:

[2012-12-02T20:47:52+00:00] INFO: remote_directory[tests-support-tdd-example-default] created directory /var/chef/minitest/tdd-example/support
[2012-12-02T20:47:52+00:00] ERROR: remote_directory[tests-support-tdd-example-default] (minitest-handler::default line 60) had an error: cookbook tdd-exam
ple has no directory files/default/tests/minitest/support; ignore_failure is set, continuing

================================================================================

Error executing action `create` on resource 'remote_directory[tests-support-tdd-example-default]'

================================================================================


Chef::Exceptions::FileNotFound

------------------------------
cookbook tdd-example has no directory files/default/tests/minitest/support

Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/minitest-handler/recipes/default.rb

 60: remote_directory "tests-support-#{cookbook_name}-#{recipe_name}" do
 61: source "tests/minitest/support"
 62: cookbook cookbook_name
 63: path "#{node['minitest']['path']}/#{cookbook_name}/support"
 64: recursive true
 65: ignore_failure true
 66: end
 67: end

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/minitest-handler/recipes/default.rb:60:in `block in from_file'

remote_directory("tests-support-tdd-example-default") do
  provider Chef::Provider::RemoteDirectory
  action :create
  ignore_failure true
  retries 0
  retry_delay 2
  path "/var/chef/minitest/tdd-example/support"
  recursive true
  source "tests/minitest/support"
  files_backup 5
  files_mode 420
  overwrite true
  cookbook "tdd-example"
  cookbook_name :"minitest-handler"
  recipe_name "default"
end


Full chef run output here: 
https://gist.github.com/4191017

Is this the expected behaviour?

Cheers, 
Torben



Archive powered by MHonArc 2.6.16.

§