Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13368

random_abort (and maybe other abort tests) shouldn't save in verify-only mode

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Test Csuite
    • Storage Engines
    • 3
    • StorEng - Defined Pipeline

      When running in verify only mode, -v, test programs like random_abort should not copy the database to a save directory. That should only be done in a "normal" execution of the test. Running in verify mode is already debugging purposes.
      The diff should be something like this:

      diff --git a/test/csuite/random_abort/main.c b/test/csuite/random_abort/main.c
      index 189da875ef..952de0cdf2 100644
      --- a/test/csuite/random_abort/main.c
      +++ b/test/csuite/random_abort/main.c
      @@ -811,8 +811,9 @@ main(int argc, char *argv[])
           if (chdir(home) != 0)
               testutil_die(errno, "parent chdir: %s", home);
       
      -    /* Copy the data to a separate folder for debugging purpose. */
      -    testutil_copy_data(home);
      +    if (!verify_only)
      +        /* Copy the data to a separate folder for debugging purpose. */
      +        testutil_copy_data(home);
       
           /*
            * Clear the cache, if we are using LazyFS. Do this after we save the data for debugging
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: