Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22349

MTR re-bootstrap modifies environment variable MYSQLD_BOOTSTRAP_CMD

    XMLWordPrintable

Details

    Description

      For tests with options not compatible with the default bootstrapped datadir, MTR performs local rebootstrap, without touching the clean install.db.

      While doing so, MTR modifies MYSQLD_BOOTSTRAP_CMD environment variable. It shouldn't be happening, the variable should remain the same as it was initially, to avoid dependency on the sequence of tests. If a test uses the variable and needs it to be modified, it should be done explicitly in the test itself.

      --- /data/src/10.4/mysql-test/mysql-test-run.pl	2020-04-23 01:23:11.583215104 +0300
      +++ mysql-test-run.pl	2020-04-23 04:31:16.384303120 +0300
      @@ -3369,7 +3369,8 @@
         # ----------------------------------------------------------------------
         # export MYSQLD_BOOTSTRAP_CMD variable containing <path>/mysqld <args>
         # ----------------------------------------------------------------------
      -  $ENV{'MYSQLD_BOOTSTRAP_CMD'}= "$exe_mysqld_bootstrap " . join(" ", @$args);
      +  $ENV{'MYSQLD_BOOTSTRAP_CMD'}= "$exe_mysqld_bootstrap " . join(" ", @$args)
      +    unless defined $ENV{'MYSQLD_BOOTSTRAP_CMD'};
       
         # Extra options can come not only from the command line, but also
         # from option files or combinations. We want them on a command line
      

      Attachments

        Activity

          People

            elenst Elena Stepanova
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.