MDL-55504 profiling: No profiling for PHPUNIT_UTIL stuff

This commit is contained in:
David Monllao 2016-09-08 15:32:46 +08:00
parent 1e1fa3a23e
commit 30fbc3ecab

View File

@ -865,7 +865,7 @@ class moodle_xhprofrun implements iXHProfRuns {
$DB->insert_record('profiling', $rec);
if (PHPUNIT_TEST) {
if (PHPUNIT_TEST && !PHPUNIT_UTIL) {
// Calculate export variables.
$tempdir = 'profiling';
make_temp_directory($tempdir);