Issue #1906 has been updated by jamtur01. Status changed from Accepted to Closed
Pushed in commit:"23289bd8c30455965fcf678f2f2410ed5ea9027b" in branch master. ---------------------------------------- Bug #1906: Uptime facts break tests on platforms that don't support /proc/uptime http://projects.reductivelabs.com/issues/1906 Author: luke Status: Closed Priority: High Assigned to: jamtur01 Category: library Target version: 1.5.3 Complexity: Unknown Keywords: I get this on my mac: <pre> 1) Errno::ENOENT in 'Per Interface IP facts should replace the ':' in an interface list with '_'' No such file or directory - /proc/uptime /Users/luke/git/facter/spec/../lib/facter/util/uptime.rb:15:in `initialize' /Users/luke/git/facter/spec/../lib/facter/util/uptime.rb:15:in `open' /Users/luke/git/facter/spec/../lib/facter/util/uptime.rb:15:in `get_uptime' /Users/luke/git/facter/spec/../lib/facter/uptime.rb:10: /Users/luke/git/facter/spec/../lib/facter/util/loader.rb:72:in `load' /Users/luke/git/facter/spec/../lib/facter/util/loader.rb:72:in `load_file' /Users/luke/git/facter/spec/../lib/facter/util/loader.rb:38:in `load_all' /Users/luke/git/facter/spec/../lib/facter/util/loader.rb:33:in `each' /Users/luke/git/facter/spec/../lib/facter/util/loader.rb:33:in `load_all' /Users/luke/git/facter/spec/../lib/facter/util/loader.rb:30:in `each' /Users/luke/git/facter/spec/../lib/facter/util/loader.rb:30:in `load_all' /Users/luke/git/facter/spec/../lib/facter/util/collection.rb:90:in `load_all' /Users/luke/git/facter/spec/../lib/facter.rb:183:in `loadfacts' ./spec/unit/interfaces.rb:9: </pre> And four more like that. The problem is that your call to 'uptime' isn't confined, because it's been optimized by pushing it out of the loop. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
