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

Behat utils uses the $CFG->dataroot/cache and $CFG->dataroot/temp dirs instead of the $CFG->behat_dataroot ones

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. If you have your behat site installed drop it and delete your $CFG->behat_dataroot directory
        • php admin/tool/behat/cli/util.php --drop
        • rm /path/to/your/CFG->behat_moodledata -rf
      2. If you are using $CFG->behat_switchcompletely comment the line or delete it
      3. Go to your wwwroot and login to access the from page (this is only to fill the cache in case it is empty)
      4. Run php admin/tool/behat/cli/util.php --install
      5. You SHOULD NOT see any exception stating that "Table context does not exists"
      6. The installation process SHOULD finish as expected
      Show
      If you have your behat site installed drop it and delete your $CFG->behat_dataroot directory php admin/tool/behat/cli/util.php --drop rm /path/to/your/CFG->behat_moodledata -rf If you are using $CFG->behat_switchcompletely comment the line or delete it Go to your wwwroot and login to access the from page (this is only to fill the cache in case it is empty) Run php admin/tool/behat/cli/util.php --install You SHOULD NOT see any exception stating that "Table context does not exists" The installation process SHOULD finish as expected
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-38009_master

      Description

      When behat utilities runs (admin/tool/behat/cli/util.php) config.php is required to get all $CFG-> values and it stops after getting them and before continuing the lib/setup.php process. $CFG->cachedir and $CFG->tempdir are set before the ABORT_AFTER_CONFIG return, but if they are already set (overridden in config.php) they keep the value.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Integrator:
              Dan Poltawski
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/May/13