File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
dev/tests/integration/framework Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 19
19
define ('INTEGRATION_TESTS_DIR ' , $ testsBaseDir );
20
20
}
21
21
22
- $ testFrameworkDir = __DIR__ ;
23
- require_once 'deployTestModules.php ' ;
24
-
25
22
try {
26
23
setCustomErrorHandler ();
27
24
28
25
/* Bootstrap the application */
29
26
$ settings = new \Magento \TestFramework \Bootstrap \Settings ($ testsBaseDir , get_defined_constants ());
30
27
28
+ $ testFrameworkDir = __DIR__ ;
29
+ require_once 'deployTestModules.php ' ;
30
+
31
31
if ($ settings ->get ('TESTS_EXTRA_VERBOSE_LOG ' )) {
32
32
$ filesystem = new \Magento \Framework \Filesystem \Driver \File ();
33
33
$ exceptionHandler = new \Magento \Framework \Logger \Handler \Exception ($ filesystem );
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
/**
8
- * @var $testFrameworkDir string - Must be defined in parent script.
8
+ * @var string $testFrameworkDir - Must be defined in parent script.
9
+ * @var \Magento\TestFramework\Bootstrap\Settings $settings - Must be defined in parent script.
9
10
*/
10
11
11
12
/** Copy test modules to app/code/Magento to make them visible for Magento instance */
39
40
include $ file ;
40
41
}
41
42
42
- register_shutdown_function ('deleteTestModules ' , $ pathToCommittedTestModules , $ pathToInstalledMagentoInstanceModules );
43
+ if (!$ settings ->get ('TESTS_PARALLEL_THREAD ' , 0 )) {
44
+ // Only delete modules if we are not using parallel executions
45
+ register_shutdown_function ('deleteTestModules ' , $ pathToCommittedTestModules , $ pathToInstalledMagentoInstanceModules );
46
+ }
43
47
44
48
/**
45
49
* Delete all test module directories which have been created before
You can’t perform that action at this time.
0 commit comments