1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MTR_BUILD_THREAD=auto selects a value for MTR_BUILD_THREAD from a pool (WL#2690)

This commit is contained in:
dfischer/df@kahlann.erinye.com
2006-11-17 16:52:21 +01:00
parent 3a12df0bb9
commit 88ac15ddd1
2 changed files with 129 additions and 0 deletions

View File

@ -85,6 +85,7 @@ require "lib/mtr_diff.pl";
require "lib/mtr_match.pl";
require "lib/mtr_misc.pl";
require "lib/mtr_stress.pl";
require "lib/mtr_unique.pl";
$Devel::Trace::TRACE= 1;
@ -449,6 +450,15 @@ sub initial_setup () {
select(STDOUT);
$| = 1; # Make unbuffered
# If so requested, we try to avail ourselves of a unique build thread number.
if ( $ENV{'MTR_BUILD_THREAD'} ) {
if ( lc($ENV{'MTR_BUILD_THREAD'}) eq 'auto' ) {
print "Requesting build thread... ";
$ENV{'MTR_BUILD_THREAD'} = mtr_require_unique_id_and_wait("/tmp/mysql-test-ports", 200, 299);
print "got ".$ENV{'MTR_BUILD_THREAD'}."\n";
}
}
$glob_scriptname= basename($0);
# We require that we are in the "mysql-test" directory