diff --git a/qubes/tests/integ/backup.py b/qubes/tests/integ/backup.py index 0b597b55b..42b40f02c 100644 --- a/qubes/tests/integ/backup.py +++ b/qubes/tests/integ/backup.py @@ -323,16 +323,17 @@ def assertCorrectlyRestored(self, vms_info, orig_hashes): self.assertIn(vm_name, self.app.domains) restored_vm = self.app.domains[vm_name] for prop in vm_info['properties']: - self.assertEqual( - vm_info['properties'][prop], - str(getattr(restored_vm, prop)), - "VM {} - property {} not properly restored".format( - vm_name, prop)) self.assertEqual( vm_info['default'][prop], restored_vm.property_is_default(prop), "VM {} - property {} differs in being default".format( vm_name, prop)) + if not vm_info['default'][prop]: + self.assertEqual( + vm_info['properties'][prop], + str(getattr(restored_vm, prop)), + "VM {} - property {} not properly restored".format( + vm_name, prop)) for dev_class in vm_info['devices']: for dev in vm_info['devices'][dev_class]: found = False