]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/TestCommon.pm
test_common: disable fsync on the CLI where possible
[public-inbox.git] / lib / PublicInbox / TestCommon.pm
index 2f4ca62255716cd7a0768bb7d44eb894cfe5ff18..ec9191b6c975aac47e5686de8be05f79169c81b1 100644 (file)
@@ -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;