Fix access rights before using glob
This commit is contained in:
parent
9a411ec3e7
commit
e99c085331
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue