提交 64f1ac91 编写于 作者: J Jared Parsons

Fix dump directory for RunTests

上级 781a9fd8
......@@ -207,10 +207,12 @@ function Test-XUnit() {
Deploy-VsixViaTool
}
$logFilePath = Join-Path $configDir "runtests.log"
$unitDir = Join-Path $configDir "UnitTests"
$runTests = Join-Path $configDir "Exes\RunTests\RunTests.exe"
$xunitDir = Join-Path (Get-PackageDir "xunit.runner.console") "tools"
$args = "$xunitDir"
$args += " -log:$logFilePath"
if ($testDesktop) {
if ($test32) {
......
......@@ -68,7 +68,7 @@ internal class Options
public string XunitPath { get; set; }
/// <summary>
/// When set the log file ffor executing tests will be written to the prescribed location.
/// When set the log file for executing tests will be written to the prescribed location.
/// </summary>
public string LogFilePath { get; set; }
......
......@@ -186,12 +186,12 @@ async Task DumpProcess(Process targetProcess, string dumpFilePath)
}
Console.WriteLine("Roslyn Error: test timeout exceeded, dumping remaining processes");
if (!string.IsNullOrEmpty(options.ProcDumpPath))
{
var dumpDir = options.LogFilePath != null
? Path.GetDirectoryName(options.LogFilePath)
: Directory.GetCurrentDirectory();
Console.WriteLine($"Dump file location is {dumpDir}");
var counter = 0;
foreach (var proc in ProcessUtil.GetProcessTree(Process.GetCurrentProcess()).OrderBy(x => x.ProcessName))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册