From 755e1cf73d101b3e1f90f064891c75258ad1fddc Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Mon, 13 Jul 2026 10:28:47 +0900 Subject: [PATCH] fix(wbs): resolve absolute Windows path issue in DomainParityTests for Linux runner compatibility --- .../ParityTests/DomainParityTests.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/dotnet/QuantEngine.Core.Tests/ParityTests/DomainParityTests.cs b/src/dotnet/QuantEngine.Core.Tests/ParityTests/DomainParityTests.cs index ac76f7ba..1a1a5226 100644 --- a/src/dotnet/QuantEngine.Core.Tests/ParityTests/DomainParityTests.cs +++ b/src/dotnet/QuantEngine.Core.Tests/ParityTests/DomainParityTests.cs @@ -24,7 +24,23 @@ namespace QuantEngine.Core.Tests.ParityTests public void Dispose() { - var tempDir = @"C:\Temp\data_feed\Temp"; + string? tempDir = null; + var current = new DirectoryInfo(AppContext.BaseDirectory); + while (current != null) + { + if (Directory.Exists(Path.Combine(current.FullName, ".git"))) + { + tempDir = Path.Combine(current.FullName, "Temp"); + break; + } + current = current.Parent; + } + + if (tempDir == null) + { + tempDir = Path.Combine(Directory.GetCurrentDirectory(), "Temp"); + } + if (!Directory.Exists(tempDir)) { Directory.CreateDirectory(tempDir);