Details
Description
I was creating a test that verifies that we can collect facts from a non-root users home directory in the supported locations.
tests/external_facts/non_root_users_default_external_fact_directory.rb
On AIX the test is failing because facter gets a FATAL error.
pe-aix-61-acceptance.delivery.puppetlabs.net (aix61-POWER-1) 14:03:54$ su nonroot -c "/opt/puppetlabs/bin/facter test"
shell-init: error retrieving current directory: getcwd: cannot access parent directories: The file access permissions do not allow the specified action.
2017-03-09 14:03:54.560821 FATAL puppetlabs.facter - unhandled exception: boost::filesystem::current_path: Permission denied
We should handle this