about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-09 07:09:28 -0100
committerEric Wong <e@80x24.org>2021-02-10 06:59:02 +0000
commit52ca935f857b8d7c7daf9837d9146886f825f2e8 (patch)
tree2ec3b469084ac072d0870e64c16d287f1c495bc5 /lib/PublicInbox/TestCommon.pm
parent3720644a427fcb812fd4996ba0d241bfedf7571a (diff)
downloadpublic-inbox-52ca935f857b8d7c7daf9837d9146886f825f2e8.tar.gz
This makes tests faster for users on slow TMPDIR (or not using
eatmydata) and forces coverage on a non-default switch.

Unfortunately, this doesn't yet cover InboxWritable usage.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index 2f4ca622..ec9191b6 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -269,6 +269,9 @@ sub run_script ($;$$) {
                         die "unable to deal with $ref $redir";
                 }
         }
+        if ($key =~ /-(index|convert|extindex|convert|xcpdb)\z/) {
+                unshift @argv, '--no-fsync';
+        }
         if ($run_mode == 0) {
                 # spawn an independent new process, like real-world use cases:
                 require PublicInbox::Spawn;