Private GIT

Skip to content
Snippets Groups Projects
Commit 69bbebb9 authored by Kevin Duret's avatar Kevin Duret Committed by Kevin Duret
Browse files

test(acceptance): add log file to clapi acceptance test (#6151)

parent be641a9b
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,15 @@ class ClapiContext extends CentreonContext
$fileCompare = trim(file_get_contents($this->file['compare'], FILE_USE_INCLUDE_PATH));
if ($fileLocal != $fileCompare) {
exec(
'diff ' . $this->file['localpath'] . ' ' . $this->file['compare'],
$output
);
file_put_contents(
$this->composeFiles['log_directory'] . '/' .
date('Y-m-d-H-i') . '-diffClapi.txt',
implode("\n", $output)
);
throw new \Exception('Configuration not imported');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment