mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-12 02:00:49 +08:00
locale test
This commit is contained in:
@@ -132,13 +132,13 @@ for my $i (8..9) {
|
||||
no_diff(
|
||||
sub {
|
||||
local $ENV{_NO_FALSE_NEGATIVES} = 1;
|
||||
print `$env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/Skipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'`
|
||||
print `LOCALE=en_US.utf8 LANG=en_US.UTF-8 $env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/Skipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'`
|
||||
},
|
||||
"t/pt-mysql-summary/samples/expected_output_temp_enc00$i.txt",
|
||||
),
|
||||
"--read-samples works for t/pt-mysql-summary/temp_enc00$i",
|
||||
) or diag($test_diff);
|
||||
diag(`$env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/S kipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'`);
|
||||
diag(`LOCALE=en_US.utf8 LANG=en_US.UTF-8 $env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/S kipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'`);
|
||||
}
|
||||
|
||||
# Test that --help works under sh
|
||||
|
||||
Reference in New Issue
Block a user