mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
skip cassandra.test unless cassandra is running
This commit is contained in:
@ -2,10 +2,18 @@ package My::Suite::Plugins;
|
||||
|
||||
@ISA = qw(My::Suite);
|
||||
|
||||
sub cassandra_running() {
|
||||
return 0 if IS_WINDOW;
|
||||
system 'echo show version | cqlsh -3 2>/dev/null >/dev/null';
|
||||
return $? == 0;
|
||||
}
|
||||
|
||||
sub skip_combinations {
|
||||
my %skip;
|
||||
$skip{'t/pam.test'} = 'No pam setup for mtr'
|
||||
unless -e '/etc/pam.d/mariadb_mtr';
|
||||
$skip{'t/cassandra.test'} = 'Cassandra is not running'
|
||||
unless cassandra_running();
|
||||
%skip;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user