puppetlabs/puppet — pull request #946 by vrthra (2012-07-17 22:16:25+00:00)
Title: 15547 : get spec tests working again in solaris

- Do not use /bin in PATH when checking for shell builtin
- Solaris barfs on invalid locale values. So when testing for facility to override current values, make sure that the new values are also valid. (We also change en_US as the sentinel for the same reason)
- pkgutil requries HOME to be set when run as a non-root user.
- mocking the facter :operatingsystem does not change the value as expected. This is kept as pending until a better solution can be found.