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

Avoid using /tmp on unittests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.0.3, 2.1
    • Backup, Unit tests
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • Hide

      Run the /backup unit tests in server not having read/write access to /tmp (not-existing or not-allowed). After the patch, tests will run without any error related to the /tmp dir.

      Show
      Run the /backup unit tests in server not having read/write access to /tmp (not-existing or not-allowed). After the patch, tests will run without any error related to the /tmp dir.

      Discovered by MDLQA-1148 it seems there are some unit tests trying to do stuff in that directory and, obvously, failing under some OSs / sites.

      So the idea is to move all those tests to use CFG->dataroot/temp instead (exists on all Moodle sites).

      Ciao

            skodak Petr Skoda
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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