Skip to content

Commit

Permalink
Run tests cmd fixed for wsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Dudnytskyi committed May 21, 2024
1 parent 6f40574 commit c9e8746
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions tests/run_tests.bat
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
@echo off
for %%G in ( *.yaml ) do (
call :append_config_file_name %%G
if %errorlevel% NEQ 0 (
echo Error while building %%G
goto :eof
)
)
if /i "%1"=="show" (
echo List of tests %configs_list%
goto :eof
)
if /i "%1"=="wsl" (
wsl --cd "%cd%" /bin/sh -c "esphome compile %configs_list%"
) else (
esphome compile %configs_list%
)
goto :eof

:append_config_file_name
set config_file=%1
if "%config_file:~0,1%" NEQ "." (
set "configs_list=%configs_list% %config_file%"
) else (
echo Skipping %config_file%
)
goto :eof
@echo off
for %%G in ( *.yaml ) do (
call :append_config_file_name %%G
if %errorlevel% NEQ 0 (
echo Error while building %%G
goto :eof
)
)
if /i "%1"=="show" (
echo List of tests %configs_list%
goto :eof
)
if /i "%1"=="wsl" (
wsl --cd "%cd%" /bin/sh -c "~/.local/bin/esphome compile %configs_list%"
) else (
esphome compile %configs_list%
)
goto :eof

:append_config_file_name
set config_file=%1
if "%config_file:~0,1%" NEQ "." (
set "configs_list=%configs_list% %config_file%"
) else (
echo Skipping %config_file%
)
goto :eof

0 comments on commit c9e8746

Please sign in to comment.