1rem Initialize the developer environment just like a developer box. Note that 'call' keyword that ensures that the script does not exist after
2rem calling the other batch file.
3call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 -winsdk=10.0.16299.0
4
5rem Set Python path
6SET PATH=%PATH%;"C:\Program Files\Python36";"C:\Program Files\Python36\scripts"
7
8rem Save working directory so that we can restore it back after building everything. This will make developers happy and then
9rem switch to the folder this script resides in. Don't assume absolute paths because on the build host and on the dev host the locations may be different.
10pushd "%~dp0"
11
12cd ..\test\guix_studio_test\test_view
13call python test_main.py -b --output_junit
14
15rem Save exit code for dotnet build.
16set EX=%ERRORLEVEL%
17
18type studio_view_test_log.txt
19
20rem Exit with explicit 0 code so that build does not fail.
21exit /B %EX%
22