From 44eed25511ba718a49f1ff7b4cf0ce804846ac47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 14 Mar 2016 13:07:58 +0100 Subject: [PATCH] tests/backup: report failure when error was expected but none detected --- qubes/tests/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index b50993df..b05348b4 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -774,6 +774,9 @@ class BackupTestsMixin(SystemTestsMixin): errors = [] if expect_errors is None: expect_errors = [] + else: + self.assertFalse(self.error_detected.empty(), + "Restore errors expected, but none detected") while not self.error_detected.empty(): current_error = self.error_detected.get() if any(map(current_error.startswith, expect_errors)):