From: deb.monish Date: Fri, 13 Apr 2018 12:43:56 +0000 (+0530) Subject: test failure fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=acc660f44b78da2f9e563c77778bf47c19d19e97;p=civicrm-core.git test failure fix --- diff --git a/CRM/Core/CodeGen/Reflection.php b/CRM/Core/CodeGen/Reflection.php index 6459288e59..0dd7f23545 100644 --- a/CRM/Core/CodeGen/Reflection.php +++ b/CRM/Core/CodeGen/Reflection.php @@ -12,6 +12,12 @@ class CRM_Core_CodeGen_Reflection extends CRM_Core_CodeGen_BaseTask { public function needsUpdate() { // Generating this file is fairly cheap, and we don't have robust heuristic // for the checksum. + + // skip this task on test environment as the schema generation should only be triggered during installation/upgrade + if (CIVICRM_UF == 'UnitTests') { + return FALSE; + } + return TRUE; }