Skip to content

Commit e0bc9bc

Browse files
committed
Merge branch 'mysql-5.7-cluster-7.5' into mysql-5.7
2 parents 7da015a + 2f4d368 commit e0bc9bc

File tree

363 files changed

+17938
-5332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

363 files changed

+17938
-5332
lines changed

mysql-test/include/ndb_default_cluster.inc

-4
This file was deleted.

mysql-test/lib/My/Exec.pm

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
# -*- cperl -*-
2+
# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
3+
#
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; version 2 of the License.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program; if not, write to the Free Software
15+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
216

317
package My::Exec;
418

@@ -55,6 +69,16 @@ sub show_last_lines_from_file {
5569
$F->close();
5670
}
5771

72+
# Extract the command name with args, ignoring its location
73+
sub get_command_name {
74+
my $cmd = shift;
75+
76+
my @cmd_parts = split(' ', $cmd);
77+
my $cmd_base_name = fileparse($cmd_parts[0]);
78+
my $cmd_base_with_args = substr($cmd , index($cmd, $cmd_base_name));
79+
return $cmd_base_with_args;
80+
}
81+
5882
#
5983
# exec_print_on_error - executes command, and prints n last lines of output
6084
# from the command only if the command fails. If the command runs
@@ -75,14 +99,16 @@ sub exec_print_on_error {
7599

76100
my $logfile_name = get_logfile_name($cmd);
77101

102+
my $cmd_base_name = get_command_name($cmd);
103+
78104
# Redirect stdout and stderr of command to log file
79105
$cmd .= " > $logfile_name 2>&1";
80106

81107
# Execute command
82-
print "Running '$cmd'\n";
108+
print "Running '$cmd_base_name'\n";
83109
system($cmd);
84110

85-
print "Result of '$cmd': $?\n";
111+
print "Result of '$cmd_base_name': $?\n";
86112
if ($? == 0)
87113
{
88114
# Test program suceeded

0 commit comments

Comments
 (0)