$OpenBSD: patch-scripts_mailpile-test_py,v 1.2 2019/05/07 17:51:52 jca Exp $

Index: scripts/mailpile-test.py
--- scripts/mailpile-test.py.orig
+++ scripts/mailpile-test.py
@@ -149,7 +149,7 @@ def test_load_save_rescan():
 
     # Rescan AGAIN, so we can test for the presence of duplicates and
     # verify that the move-detection code actually works.
-    os.system('rm -f %s/Maildir/*/*' % mailpile_home)
+    os.system('rm -rf %s/Maildir/*/*' % mailpile_home)
     mp.add(os.path.join(mailpile_home, 'Maildir2'))
     mp.rescan('mailboxes')
 
@@ -386,4 +386,4 @@ if '-i' in sys.argv:
 ##[ Cleanup ]#################################################################
 config.stop_workers()
 os.system('rm -rf %s' % mailpile_home)
-os.system('git checkout %s' % mailpile_test)
+#os.system('git checkout %s' % mailpile_test)
