From 0d06473df9aaeef154f9ec79b63cdbb0dc943913 Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Fri, 27 Feb 2026 07:05:30 +0100 Subject: [PATCH] Partition table can be verified before mounting --- Duplicati/UnitTest/DiskImage/DiskImageTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/UnitTest/DiskImage/DiskImageTests.cs b/Duplicati/UnitTest/DiskImage/DiskImageTests.cs index 895cf503a..4627da74e 100644 --- a/Duplicati/UnitTest/DiskImage/DiskImageTests.cs +++ b/Duplicati/UnitTest/DiskImage/DiskImageTests.cs @@ -457,9 +457,9 @@ namespace Duplicati.UnitTest await TestContext.Progress.WriteLineAsync($"Restore completed successfully"); // Verify partition table matches + VerifyPartitionTableMatches(sourceDrivePath, restoreDrivePath); sourcePartitions = _diskHelper.Mount(sourceDrivePath, _sourceMountPath, readOnly: true); var restorePartitions = _diskHelper.Mount(restoreDrivePath, _restoreMountPath, readOnly: true); - VerifyPartitionTableMatches(sourceDrivePath, restoreDrivePath); await TestContext.Progress.WriteLineAsync($"Partition table verified to match source"); // Verify data matches byte-for-byte