Paths handled by the disk image feature doesn't treat all separators as /
This commit is contained in:
@@ -3769,7 +3769,7 @@ public class DiskImageUnitTests : BasicSetupHelper
|
||||
|
||||
// Test with geometry file at the root of the device
|
||||
// Use the actual device path from the GPT test disk
|
||||
var geometryPath = $"{s_gptRawDisk!.DevicePath}/geometry.json";
|
||||
var geometryPath = $"{s_gptRawDisk!.DevicePath}{Path.DirectorySeparatorChar}geometry.json";
|
||||
var result = parsePathMethod!.Invoke(provider, [geometryPath]);
|
||||
Assert.IsNotNull(result, "Should return a tuple.");
|
||||
|
||||
|
||||
@@ -588,7 +588,7 @@ public sealed class RestoreProvider : IRestoreDestinationProviderModule, IDispos
|
||||
|
||||
string geometryDevicePath = NormalizePath(_targetDisk.DevicePath);
|
||||
|
||||
string expectedGeometryPath = $"{geometryDevicePath}/geometry.json";
|
||||
string expectedGeometryPath = $"{geometryDevicePath}{Path.DirectorySeparatorChar}geometry.json";
|
||||
|
||||
return string.Equals(path, expectedGeometryPath, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user