Module: check_mk
Branch: master
Commit: 22dcd6f8ff2e94c8fb538ffd1f76300799e3b503
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=22dcd6f8ff2e94…
Author: Sergey Kipnis <sk(a)mathias-kettner.de>
Date: Mon Mar 25 12:08:09 2019 +0100
Improved diagnostic and removed bad message
Change-Id: Ifca6f63eedb2585e6c557e093b0270a39e3b47b6
---
agents/wnx/prepare_to_tests.cmd | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/agents/wnx/prepare_to_tests.cmd b/agents/wnx/prepare_to_tests.cmd
index 93fecfd..4fd54ff 100644
--- a/agents/wnx/prepare_to_tests.cmd
+++ b/agents/wnx/prepare_to_tests.cmd
@@ -7,7 +7,7 @@ powershell Write-Host Setting root to %root% -Foreground Green
:exec_me
set user_dir=%root%\%prdata%\CheckMk\Agent
if not exist "%root%" powershell Write-Host Making folder %root% -Foreground
Yellow && mkdir %root% 2> nul
-mkdir %root%\plugins
+mkdir %root%\plugins 2> nul
if not exist "%user_dir%" powershell Write-Host Making folder %user_dir%
-Foreground Yellow && mkdir %user_dir% 2> nul
mkdir %root%\bin 2> nul
mkdir %root%\utils 2> nul
@@ -15,6 +15,8 @@ mkdir %root%\providers 2> nul
mkdir %root%\exe 2> nul
mkdir %root%\pdb 2> nul
+if not exist "..\windows\plugins" powershell Write-Host "Folder
agents\windows\plugins doesnt exist. Check prep\checkout routine" -Foreground Red
&& exit 33
+
powershell Write-Host "Installation simulation Root Folder: plugins, ohm, yml"
-Foreground Green
copy ..\windows\plugins\*.* %root%\plugins\ > nul || powershell Write-Host
"Failed plugins copy" -Foreground Red && exit 3
copy .\test_files\ohm\cli\*.* %root%\bin\ > nul || powershell Write-Host
"Failed ohm copy. Try to kill Open Hardware Monitor: taskkill /F /IM
OpenhardwareMonitorCLI.exe" -Foreground Red && exit 4