mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°7446 - fix again
This commit is contained in:
@@ -54,13 +54,13 @@ class UnitTestRunTimeEnvironment extends RunTimeEnvironment
|
|||||||
$sDestDir = APPROOT.'env-'.$this->sFinalEnv;
|
$sDestDir = APPROOT.'env-'.$this->sFinalEnv;
|
||||||
if (! is_dir($sDestDir) && count($aCustomDatamodelFiles) > 0){
|
if (! is_dir($sDestDir) && count($aCustomDatamodelFiles) > 0){
|
||||||
$this->PrintFiles($aCustomDatamodelFiles);
|
$this->PrintFiles($aCustomDatamodelFiles);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$fLastCompilationTime = filemtime($sDestDir);
|
$fLastCompilationTime = filemtime($sDestDir);
|
||||||
if (false === $fLastCompilationTime){
|
if (false === $fLastCompilationTime){
|
||||||
echo "Issue when calling filemtime($sDestDir) \n";
|
echo "Issue when calling filemtime($sDestDir) \n";
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$aModifiedFiles = [];
|
$aModifiedFiles = [];
|
||||||
@@ -76,10 +76,10 @@ class UnitTestRunTimeEnvironment extends RunTimeEnvironment
|
|||||||
|
|
||||||
if (count($aModifiedFiles) > 0) {
|
if (count($aModifiedFiles) > 0) {
|
||||||
$this->PrintFiles($aModifiedFiles);
|
$this->PrintFiles($aModifiedFiles);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function PrintFiles(array $aFiles, string $sMsg = "The following files have been modified after the last compilation") : void
|
private function PrintFiles(array $aFiles, string $sMsg = "The following files have been modified after the last compilation") : void
|
||||||
|
|||||||
Reference in New Issue
Block a user