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

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-38009_master
    • 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

    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

              dmonllao David Monllaó
              dmonllao David Monllaó
              Dan Poltawski Dan Poltawski
              Rajesh Taneja Rajesh Taneja
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13