summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-06-21 08:34:35 +0200
committerSergei Golubchik <serg@mariadb.org>2018-06-21 08:34:35 +0200
commitc09a8b5b36edb494e2bcc93074c06e26cd9f2b92 (patch)
tree50b3a41ae06bdc2e891569f9d607afc5cd887211 /mysql-test
parent4b821e02f6e4b8008a7f101921b0d659dd1459c4 (diff)
parentd8192f5495ec5db99cde0cee5096bd99b6eaf01f (diff)
downloadmariadb-git-c09a8b5b36edb494e2bcc93074c06e26cd9f2b92.tar.gz
Merge branch '10.0' into 10.1
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/suite/unit/suite.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/mysql-test/suite/unit/suite.pm b/mysql-test/suite/unit/suite.pm
index fa1da2ae4ff..48401b1579f 100644
--- a/mysql-test/suite/unit/suite.pm
+++ b/mysql-test/suite/unit/suite.pm
@@ -37,10 +37,11 @@ sub start_test {
}
{
+ my $bin=$ENV{MTR_BINDIR} || '..';
return "Not run for embedded server" if $::opt_embedded_server;
- return "Not configured to run ctest" unless -f "../CTestTestfile.cmake";
- my ($ctest_vs)= $opt_vs_config ? "--build-config $opt_vs_config" : "";
- my (@ctest_list)= `cd .. && ctest $opt_vs_config -E MTR -C default_ignore --show-only --verbose`;
+ return "Not configured to run ctest" unless -f "$bin/CTestTestfile.cmake";
+ my ($ctest_vs)= $::opt_vs_config ? "-C ".substr($::opt_vs_config,1) : "";
+ my (@ctest_list)= `cd $bin && ctest $ctest_vs --show-only --verbose`;
return "No ctest" if $?;
my ($command, %tests);