From 9a411ec3e72b2ea58708d72a07728dfcf0063e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Apr 2023 19:25:42 +0200 Subject: [PATCH] Fix access rights after killing OpenSMTPD --- 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 d618eca..64a2143 100755 --- a/tests/start_test.py +++ b/tests/start_test.py @@ -191,7 +191,6 @@ def start_tests(test_dir, smtp_port, canonicalization): # Testing DKIM signatures nb_dkim_ok = 0 nb_dkim_total = 0 - fix_perms(f"{maildir.name}/Maildir") maildir_glob = f"{maildir.name}/Maildir/new/*" nb_sleep = 0 while True: @@ -202,6 +201,7 @@ def start_tests(test_dir, smtp_port, canonicalization): 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)