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

gradeimport_csv unit tests completely break unit test runs on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Gradebook
    • Labels:

      Description

      They leave some temporary files open, leading to nearly 3000 errors

      1) gradeimport_csv_load_data_testcase::test_import_new_grade_item
      unlink(C:\Temp\phpunitdata_head/temp/csvimport/grade/2/1413213847): Permission denied
       
      C:\Users\tjh238\workspace\moodle_head\lib\moodlelib.php:9098
      C:\Users\tjh238\workspace\moodle_head\lib\moodlelib.php:9096
      C:\Users\tjh238\workspace\moodle_head\lib\moodlelib.php:9096
      C:\Users\tjh238\workspace\moodle_head\lib\moodlelib.php:9096
      C:\Users\tjh238\workspace\moodle_head\lib\testing\classes\util.php:720
      C:\Users\tjh238\workspace\moodle_head\lib\phpunit\classes\util.php:229
      C:\Users\tjh238\workspace\moodle_head\lib\phpunit\classes\advanced_testcase.php:107
       
      To re-run:
       vendor/phpunit/phpunit/composer/bin/phpunit gradeimport_csv_load_data_testcase
      grade\import\csv\tests\load_data_test.php
      

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14