Skip to content

Commit

Permalink
MDL-55504 profiling: No profiling for PHPUNIT_UTIL stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Sep 8, 2016
1 parent 1e1fa3a commit 30fbc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xhprof/xhprof_moodle.php
Expand Up @@ -865,7 +865,7 @@ public function save_run($xhprof_data, $type, $run_id = null) {

$DB->insert_record('profiling', $rec);

if (PHPUNIT_TEST) {
if (PHPUNIT_TEST && !PHPUNIT_UTIL) {
// Calculate export variables.
$tempdir = 'profiling';
make_temp_directory($tempdir);
Expand Down

0 comments on commit 30fbc3e

Please sign in to comment.