Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51832

Unit test core_update_code_manager_testcase::test_list_plugin_folder_files() fails on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0
    • Administration, Unit tests

    Description

      As reported by stronk7 in MDL-49329 comment
      https://tracker.moodle.org/browse/MDL-49329?focusedCommentId=377533&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-377533 there is one new unit test failing on Windows.

      Windows use backslash as the directory separator so the full paths comparison fails. After several prototypes, we agreed that the best approach is to normalize the paths returned by the list_plugin_folder_files() method so that it always uses forward slashes on all platforms.

      Attachments

        Issue Links

          Activity

            People

              mudrd8mz David Mudrák (@mudrd8mz)
              mudrd8mz David Mudrák (@mudrd8mz)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Nov/15