<commit_before>@if not defined _echo @echo off

:: To run tests outside of MSBuild.exe
:: %1 is the path to the tests\<OSConfig> folder
:: %2 is the path to the packages folder

pushd %1

FOR /D %%F IN (*.Tests) DO (
	IF EXIST %%F\netcoreapp1.0 (
		pushd %%F\netcoreapp1.0
		IF EXIST RunTests.cmd (
			CALL RunTests.cmd %2<commit_msg>Fix run-tests.bat (#15811)<commit_after>@if not defined _echo @echo off
setlocal 
:: To run tests outside of MSBuild.exe
:: %1 is the path to the bin\<OSConfig> folder
:: %2 is the path to the tools\testdotnetcli folder

set LOCATION=%1
set RUNTIME_PATH=%2

if "%LOCATION%" == "" set LOCATION=%~dp0\bin\Windows_NT.AnyCPU.Debug
if "%RUNTIME_PATH%" == "" set RUNTIME_PATH=%~dp0\Tools\testdotnetcli

pushd %LOCATION%

FOR /D %%F IN (*.Tests) DO (
	IF EXIST %%F\netcoreapp (
		pushd %%F\netcoreapp
                @echo Looking in %cd%...
		IF EXIST RunTests.cmd (
                        @echo ... found tests
			CALL RunTests.cmd %RUNTIME_PATH%
{'fraction_non_alphanumeric': 0.1290983606557377, 'fraction_numerical': 0.0194672131147541, 'mean_word_length': 3.2663755458515285, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '290264', 'n_tokens_mistral': 375, 'n_tokens_neox': 345, 'n_words': 115}