Index: visual_studio/NativeClientVSAddIn/test.bat |
diff --git a/visual_studio/NativeClientVSAddIn/test.bat b/visual_studio/NativeClientVSAddIn/test.bat |
index a6475b23fc5bf7e07714b63483414a81d78f4cb9..b662188d34e130539cb886771c5f0a2098795a1c 100755 |
--- a/visual_studio/NativeClientVSAddIn/test.bat |
+++ b/visual_studio/NativeClientVSAddIn/test.bat |
@@ -1,9 +1,10 @@ |
@echo off |
+setlocal |
:: Locations |
set out_directory=..\..\out\vs_addin\Test |
set mstest_file=Results.trx |
-set test_assembly=..\..\out\vs_addin\Debug\UnitTests.dll |
+set test_assembly=..\..\out\vs_addin\2010\Debug\UnitTests.dll |
:: Set up the Visual Studio environment |
call "%VS100COMNTOOLS%vsvars32.bat" |
@@ -17,4 +18,8 @@ mstest /testcontainer:%test_assembly% /testsettings:Local.testsettings /resultsf |
:: Parse the result with python script, return python's exit status |
python check_test_results.py %out_directory%\%mstest_file% |
-exit /B %ERRORLEVEL% |
+ |
+endlocal & set BUILD_ERRORLEVEL=%ERRORLEVEL% |
+ |
+:endbuild |
+exit /B %BUILD_ERRORLEVEL% |