Skip to content

Commit 73f39bc

Browse files
committed
Add the PID of the test runner
To the test folder name
1 parent eedbae5 commit 73f39bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/domain_tests/TestRunner.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,12 +995,14 @@ public static int Main(string[] args)
995995

996996
static void SetupTestFolder(string testCaseName)
997997
{
998-
TestPath = Path.Combine(Path.GetTempPath(), $"Python.TestRunner.{testCaseName}");
998+
var pid = System.Diagnostics.Process.GetCurrentProcess().Id;
999+
TestPath = Path.Combine(Path.GetTempPath(), $"Python.TestRunner.{testCaseName}-{pid}");
9991000
if (Directory.Exists(TestPath))
10001001
{
10011002
Directory.Delete(TestPath, recursive: true);
10021003
}
10031004
Directory.CreateDirectory(TestPath);
1005+
Console.WriteLine($"Using directory: {TestPath}");
10041006
File.Copy(PythonDllLocation, Path.Combine(TestPath, "Python.Runtime.dll"));
10051007
}
10061008

0 commit comments

Comments
 (0)