Add markers for recipe env testing
Bug: 92
Change-Id: I57dfcde96d8b5942a2624d5e5a88f177b304e6bd
diff --git a/pw_env_setup/env_setup.bat b/pw_env_setup/env_setup.bat
index 7152cc1..74614d9 100644
--- a/pw_env_setup/env_setup.bat
+++ b/pw_env_setup/env_setup.bat
@@ -17,7 +17,14 @@
:: Calls a Powershell script that determines the correct PW_ROOT directory and
:: exports it as an environment variable.
+:: LUCI DELETE BEGIN
+:: The ~dp0 magic doesn't work when this batch script is launched from another
+:: batch script. So when testing on Windows we write a copy of this batch
+:: script that assumes PW_ROOT is already set. Then the batch script we run
+:: directly sets PW_ROOT, calls the copy of this batch script and runs
+:: 'pw presubmit'.
for /F "usebackq tokens=1" %%i in (`powershell %%~dp0..\..\pw_env_setup\env_setup.ps1`) do set PW_ROOT=%%i
+:: LUCI DELETE END
set shell_file="%PW_ROOT%\pw_env_setup\.env_setup.bat"