From 14895f4b7bea135f62fa5ccccb85d62135019938 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 14 Aug 2017 11:54:17 +0200 Subject: [PATCH] adjust the expectations about checksum mismatches with non-authenticated recover modes --- testing/test_recover.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/testing/test_recover.py b/testing/test_recover.py index 9e1c0b1..8378afc 100644 --- a/testing/test_recover.py +++ b/testing/test_recover.py @@ -426,6 +426,9 @@ class RecoverCorruptTrailingDataSingleTest (RecoverCorruptTrailingDataTestBase): VOLUMES = 1 class RecoverCorruptTrailingDataMultiTest (RecoverCorruptTrailingDataTestBase): + # the last object in first archive has extra bytes somewhere in the + # middle because tar itself performs no data checksumming. + MISMATCHES = 1 VOLUMES = 3 @@ -443,6 +446,12 @@ class RecoverCorruptTrailingDataGZSingleTest (RecoverCorruptTrailingDataGZTestBa class RecoverCorruptTrailingDataGZMultiTest (RecoverCorruptTrailingDataGZTestBase): VOLUMES = 3 + # the last file of the first volume will only contain the data of the + # second part which is contained in the second volume. this happens + # because the CRC32 is wrong for the first part so it gets discarded, then + # the object is recreated from the first header of the second volume, + # containing only the remainder of the data. + MISMATCHES = 1 class RecoverCorruptTrailingDataGZAESTestBase (RecoverTest): -- 1.7.1