From 90e7f065e3b0211fd7f51ef89fedf4b9273461b0 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Fri, 28 Jul 2023 16:35:52 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20failing=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The exception message is now only printed at high verbosity --- tests/handle_corrupted_passwords.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/handle_corrupted_passwords.t b/tests/handle_corrupted_passwords.t index 264dfcd..64cfb18 100755 --- a/tests/handle_corrupted_passwords.t +++ b/tests/handle_corrupted_passwords.t @@ -9,6 +9,8 @@ from simpletap.fdecrypt import lib class TestCorruptedPassword(unittest.TestCase): def validate_one(self, userkey, grepkey, output): expected = lib.get_user_data(userkey) + # Ignore DEBUG/verbose information when looking for the specified key + output = lib.grep("^(?!.*DEBUG).*$", output, context=0) matches = lib.grep(grepkey, output, context=1) self.assertEqual(matches, expected) @@ -47,7 +49,7 @@ class TestCorruptedPassword(unittest.TestCase): "test_profile_firefox_nopassword_114") # Must run in non-interactive mode or password prompt will be shown - cmd = lib.get_script() + [self.test, "-n", "--non-fatal-decryption"] + cmd = lib.get_script() + [self.test, "-n", "--non-fatal-decryption", "-vv"] self.run_firefox_nopassword(cmd)