Skip to content

Commit

Permalink
Merge branch '10.2' of github.com:MariaDB/server into 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrunia committed Jun 21, 2019
2 parents 821b866 + 8d24f4e commit 75833ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/mysqltest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4643,8 +4643,16 @@ void do_perl(struct st_command *command)

str_to_file(temp_file_path, ds_script.str, ds_script.length);

/* Use the same perl executable as the one that runs mysql-test-run.pl */
const char *mtr_perl=getenv("MTR_PERL");
if (!mtr_perl)
mtr_perl="perl";

/* Format the "perl <filename>" command */
my_snprintf(buf, sizeof(buf), "perl %s", temp_file_path);
if (strchr(mtr_perl, ' '))
my_snprintf(buf, sizeof(buf), "\"%s\" %s", mtr_perl, temp_file_path);
else
my_snprintf(buf, sizeof(buf), "%s %s", mtr_perl, temp_file_path);

if (!(res_file= my_popen(buf, "r")))
{
Expand Down
2 changes: 2 additions & 0 deletions mysql-test/mysql-test-run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ ($)


sub main {
$ENV{MTR_PERL}=$^X;

# Default, verbosity on
report_option('verbose', 0);

Expand Down

0 comments on commit 75833ef

Please sign in to comment.