summaryrefslogtreecommitdiffstats
path: root/test/util/autoload.rb
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-07-18 23:05:35 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-07-19 14:06:36 -0700
commit462a95e3d077b1915a919399b846068816c84583 (patch)
treef2e260c6d923d49f20a3d6094796aae36ec240fe /test/util/autoload.rb
parent45ae5b4a9ced26dfcd3e324391f9a26cb02bf93d (diff)
downloadpuppet-462a95e3d077b1915a919399b846068816c84583.tar.gz
puppet-462a95e3d077b1915a919399b846068816c84583.tar.xz
puppet-462a95e3d077b1915a919399b846068816c84583.zip
Fix tests with "relative" paths on Windows
Absolute paths on Unix, e.g. /foo/bar, are not absolute on Windows, which breaks many test cases. This commit adds a method to PuppetSpec::Files.make_absolute that makes the path absolute in test cases. On Unix (Puppet.features.posix?) it is a no-op. On Windows, (Puppet.features.microsoft_windows?) the drive from the current working directory is prepended. Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'test/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions