~maria-captains/maria/10.0-wlad

« back to all changes in this revision

Viewing changes to mysql-test/suite/plugins/suite.pm

  • Committer: Sergei Golubchik
  • Date: 2013-01-31 12:19:53 UTC
  • Revision ID: sergii@pisem.net-20130131121953-gf3u13p032wxcd63
skip cassandra.test unless cassandra is running

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
@ISA = qw(My::Suite);
4
4
 
 
5
sub cassandra_running() { 
 
6
  return 0 if IS_WINDOW; 
 
7
  system 'echo show version | cqlsh -3 2>/dev/null >/dev/null'; 
 
8
  return $? == 0; 
 
9
 
10
 
5
11
sub skip_combinations {
6
12
  my %skip;
7
13
  $skip{'t/pam.test'} = 'No pam setup for mtr'
8
14
             unless -e '/etc/pam.d/mariadb_mtr';
 
15
  $skip{'t/cassandra.test'} = 'Cassandra is not running'
 
16
             unless cassandra_running();
9
17
  %skip;
10
18
}
11
19