Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6985

False test failures on Windows due to case-sensitive paths

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Needs Assessment

    Description

      Windows paths are not case sensitive, however some tests are failing to due to case sensitive paths, e.g.

      ...
        1) Puppet::FileSystem symlink expand_path on Windows should return the absolute path including system drive letter when given /, like Ruby File.expand_path
           Failure/Error: expect(expanded).to eq(ENV['SystemDrive'] + File::SEPARATOR)
       
             expected: "C:/"
                  got: "c:/"
       
             (compared using ==)
           # ./spec/unit/file_system_spec.rb:692:in `block (6 levels) in <top (required)>'
      

      repro.

      • On a vanilla Windows VM (2012 R2), install git, ruby etc,
      • clone puppet, bundle install etc.
      • Open command prompt
      • Change directory , making sure the drive letter is lowercase e.g. cd c:/puppet
      • run tests

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              glenn.sarti Glenn Sarti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support