MDL-54628 behat: Set behat dir for each run under behat_dataroot

Before this patch behat_dataroot for parallel runs
were created at same level as ->behat_dataroot
After this patch, it will be created 1 level under
->behat_dataroot with BEHAT_PARALLEL_SITE_NAME
prefix and run number as suffix. This will allow
common files as test enabled and parallel run info
to be saved in parent directory and access it easily.
This commit is contained in:
Rajesh Taneja
2017-01-30 09:23:58 +08:00
parent a669c6b21e
commit 4f5a6ca40e
10 changed files with 286 additions and 191 deletions
+4 -2
View File
@@ -412,10 +412,12 @@ class phpunit_util extends testing_util {
self::reset_dataroot();
testing_initdataroot($CFG->dataroot, 'phpunit');
self::drop_dataroot();
// drop all tables
// Drop all tables.
self::drop_database($displayprogress);
// Drop dataroot.
self::drop_dataroot();
}
/**