Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: tests fail due to sending logs to /dev/null #17

Open
clintoncwolfe opened this issue Oct 11, 2019 · 0 comments
Open

Windows: tests fail due to sending logs to /dev/null #17

clintoncwolfe opened this issue Oct 11, 2019 · 0 comments
Labels
Aspect: Testing Does the project have good coverage, and is CI working? Platform: Windows Type: Bug Does not work as expected.

Comments

@clintoncwolfe
Copy link
Contributor

Describe the problem

All tests currently fail on windows because during setup, the logger is configured to send logging to /dev/null, which does not exist.

47) ChefCore::Actions::InstallChef#perform_local_install performs the steps necessary to perform an installation
--
  | Failure/Error: location = File.open(location, "w+")
  |  
  | Errno::ENOENT:
  | No such file or directory @ rb_sysopen - /dev/null
  | # ./lib/chef_core/log.rb:29:in `initialize'
  | # ./lib/chef_core/log.rb:29:in `open'
  | # ./lib/chef_core/log.rb:29:in `setup'
  | # ./spec/spec_helper.rb:90:in `block (2 levels) in <top (required)>'

Software Version

Replication Case

Stacktrace

``` ``` https://github.com/chef/chef-core/blob/e1c1783c44bb833fd34d9293621949c37b9498d1/spec/spec_helper.rb#L90

Possible Solution

@zenspider zenspider added Aspect: Testing Does the project have good coverage, and is CI working? Platform: Windows Type: Bug Does not work as expected. labels Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: Testing Does the project have good coverage, and is CI working? Platform: Windows Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants