mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 16:12:04 +00:00
Fix a bazillion tests with ANSI sql_mode, and get rid of a bunch of MySQLDump usage.
This commit is contained in:
@@ -23,7 +23,7 @@ if ( !$dbh ) {
|
||||
plan skip_all => 'Cannot connect to sandbox master';
|
||||
}
|
||||
else {
|
||||
plan tests => 21;
|
||||
plan tests => 23;
|
||||
}
|
||||
|
||||
my $output;
|
||||
@@ -40,10 +40,18 @@ like(
|
||||
'Prints tables without any tests'
|
||||
);
|
||||
|
||||
# These tests are going to be senstive to your sakila db. Hopefully,
|
||||
# it matches mine which I tend to load fresh and not modify. For example,
|
||||
# the next insert id for sakila.film is expected to be 1001. If this
|
||||
# becomes an issue, I may commit my copy of the sakila db to Google Code.
|
||||
$output = `$cmd --view .`;
|
||||
like(
|
||||
$output,
|
||||
qr/`sakila`.`sales_by_store`/,
|
||||
'Prints views'
|
||||
);
|
||||
unlike(
|
||||
$output,
|
||||
qr/`sakila`.`actor`/,
|
||||
'Does not print non-views'
|
||||
);
|
||||
|
||||
|
||||
SKIP: {
|
||||
skip 'Sandbox master does not have the sakila database', 17
|
||||
|
Reference in New Issue
Block a user