simplify and clean up sandbox/test-env a little, also helps prevent error messages like this when running test-env: [Warning] option 'thread_stack': unsigned value 126976 adjusted to 131072

This commit is contained in:
baron
2012-06-05 10:22:04 -04:00
parent 422308ffc5
commit 95f7e53feb
2 changed files with 14 additions and 36 deletions

View File

@@ -73,7 +73,7 @@ our $trunk = $ENV{PERCONA_TOOLKIT_BRANCH};
our $sandbox_version = '';
eval {
chomp(my $v = `$trunk/sandbox/test-env version`);
chomp(my $v = `$trunk/sandbox/test-env version 2>/dev/null`);
$sandbox_version = $v if $v;
};