diff options
author | unknown <msvensson@neptunus.(none)> | 2006-11-28 22:17:26 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-11-28 22:17:26 +0100 |
commit | 6e36d3c501dfd0509435ef475b9f69ce5a0d08d8 (patch) | |
tree | df61e4f0d7b59919320e1971b7a2da6ad20c5e24 /mysql-test/mysql-test-run.pl | |
parent | befbebcfdb0749fc0167a7652900abae6a0060e7 (diff) | |
parent | e789cdaa9d091ae92a074ec3e846ca7477c28a6a (diff) | |
download | mariadb-git-6e36d3c501dfd0509435ef475b9f69ce5a0d08d8.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/work/my41-work
into neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
mysql-test/mysql-test-run.pl:
Auto merged
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 4ef2eb2a758..5cad27df555 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1248,26 +1248,15 @@ sub datadir_list_setup () { sub collect_mysqld_features () { - # - # Execute "mysqld --no-defaults --help --verbose", that will - # print out version and a list of all features and settings - # my $found_variable_list_start= 0; - my $spec_file= "$glob_mysql_test_dir/mysqld.spec.$$"; - if ( mtr_run($exe_mysqld, - ["--no-defaults", - "--verbose", - "--help"], - "", "$spec_file", "$spec_file", "") != 0 ) - { - mtr_error("Failed to get version and list of features from %s", - $exe_mysqld); - } - my $F= IO::File->new($spec_file) or - mtr_error("can't open file \"$spec_file\": $!"); + # + # Execute "mysqld --no-defaults --help --verbose" to get a + # of all features and settings + # + my $list= `$exe_mysqld --no-defaults --verbose --help`; - while ( my $line= <$F> ) + foreach my $line (split('\n', $list)) { # First look for version if ( !$mysql_version_id ) @@ -1320,7 +1309,7 @@ sub collect_mysqld_features () { } } } - unlink($spec_file); + mtr_error("Could not find version of MySQL") unless $mysql_version_id; mtr_error("Could not find variabes list") unless $found_variable_list_start; |