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

False test failures on Windows due to case-sensitive paths

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • QA Risk Assessment:
      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

              • Assignee:
                Unassigned
                Reporter:
                glenn.sarti Glenn Sarti
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support