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

core_filelib_testcase::test_file_merge_files_from_draft_area_into_filearea fail on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.12, 2.9.7, 3.0.5, 3.1.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Unit tests
    • Labels:
    • Environment:
      Windows 10
      php 5.6.22
    • Testing Instructions:
      Hide

      Run unit test lib\tests\filelib_test.php on windows and ensure they pass.

      NOTE:

      1. Before running unit test open $CFG->phpunit_dataroot/filedir and note number of directories there.
      2. After the test pass, check $CFG->phpunit_dataroot/filedir gaian, ensure number of directories are equal to original number of directories.
      Show
      Run unit test lib\tests\filelib_test.php on windows and ensure they pass. NOTE: Before running unit test open $CFG->phpunit_dataroot/filedir and note number of directories there. After the test pass, check $CFG->phpunit_dataroot/filedir gaian, ensure number of directories are equal to original number of directories.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      wip-mdl-55174

      Description

      Unit test core_filelib_testcase::test_file_merge_files_from_draft_area_into_filearea is failing on windows

      1) core_filelib_testcase::test_file_merge_files_from_draft_area_into_filearea
      file_exception: Cannot read file. Either the file does not exist or there is a permission problem. (C:\moodledata\jenkins_phpunit/filedir/da/39/da39a3ee5e6b4b0d3255bfef95601890afd80709)
       
      C:\Apache24\htdocs\jenkins\lib\filestorage\stored_file.php:187
      C:\Apache24\htdocs\jenkins\lib\filestorage\stored_file.php:893
      C:\Apache24\htdocs\jenkins\lib\filelib.php:2683
      C:\Apache24\htdocs\jenkins\lib\filelib.php:2759
      C:\Apache24\htdocs\jenkins\lib\filelib.php:2708
      C:\Apache24\htdocs\jenkins\lib\tests\filelib_test.php:1064
      C:\Apache24\htdocs\jenkins\lib\phpunit\classes\advanced_testcase.php:80
       
      To re-run:
       C:\Apache24\htdocs\jenkins\vendor\bin\/../phpunit/phpunit/phpunit core_filelib_testcase lib\tests\filelib_test.php
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/16