diff options
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 630eec67e3d..3cc4a74dda3 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -401,9 +401,19 @@ sub check_wsrep_version() { } sub wsrep_version_message() { - my $output= `$My::SafeProcess::wsrep_check_version -p`; - $output =~ s/\s+\z//; - return "Wsrep provider version mismatch (".$output.")"; + if ($My::SafeProcess::wsrep_check_version ne "") { + my $output= `$My::SafeProcess::wsrep_check_version -p`; + if (($? >> 8) == 0) { + $output =~ s/\s+\z//; + return "Wsrep provider version mismatch (".$output.")"; + } + else { + return "Galera library does not contain a version symbol"; + } + } + else { + return "Unable to find a wsrep version check utility"; + } } sub which($) { return `sh -c "command -v $_[0]"` } |