From 14db363c4acf2f5ce3ed81119af3ba81454c80ae Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Mon, 13 Jan 2020 01:50:13 -0800 Subject: [PATCH] Fix invocation of runtest.py (#1660) If you pass arguments to runtest.cmd, the argument parsing "shift" commands will lose the `%0` argument, so using `%~dp0` to find the script location no longer works. Use the cached script location to invoke runtest.py. --- src/coreclr/tests/runtest.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tests/runtest.cmd b/src/coreclr/tests/runtest.cmd index 86a4a18..7d5fd92 100644 --- a/src/coreclr/tests/runtest.cmd +++ b/src/coreclr/tests/runtest.cmd @@ -185,7 +185,7 @@ if defined RunInUnloadableContext ( set __RuntestPyArgs=%__RuntestPyArgs% --run_in_context ) -set NEXTCMD=python "%~dp0runtest.py" %__RuntestPyArgs% +set NEXTCMD=python "%__ProjectDir%\runtest.py" %__RuntestPyArgs% echo !NEXTCMD! !NEXTCMD! -- 2.7.4