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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.6, 3.1.2
    • 2.8.12, 2.9.7, 3.0.5, 3.1.1
    • Unit tests
    • Windows 10
      php 5.6.22
    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • wip-mdl-55174
    • 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.

      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
      

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Simey Lameze Simey Lameze
            Dan Poltawski Dan Poltawski
            cameron1729 cameron1729
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.