From e99c085331b754be31351a00f89503de19141ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Apr 2023 19:31:41 +0200 Subject: [PATCH] Fix access rights before using glob --- tests/start_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/start_test.py b/tests/start_test.py index 64a2143..0ce49b3 100755 --- a/tests/start_test.py +++ b/tests/start_test.py @@ -198,10 +198,10 @@ def start_tests(test_dir, smtp_port, canonicalization): if nb_sleep > 6: fail("Some messages have not been received.") time.sleep(nb_sleep) + fix_perms(f"{maildir.name}/Maildir") if len(glob.glob(maildir_glob)) == nb_total: break kill_opensmtpd(pid_smtpd) - fix_perms(f"{maildir.name}/Maildir") for test_msg in glob.glob(maildir_glob): nb_dkim_total += 1 nb_dkim_ok += test_dkim(test_msg)