Make ptc exit status 0, 255, or a bitmask of flags for various problems.

This commit is contained in:
Daniel Nichter
2013-10-03 11:32:11 -07:00
parent f6661ca658
commit cd29c0d7dc
5 changed files with 278 additions and 164 deletions

View File

@@ -123,7 +123,7 @@ $exit_status = pt_table_checksum::main(@args,
is(
$exit_status,
1,
512, # = TABLE_DIFF but nothing else; https://bugs.launchpad.net/percona-toolkit/+bug/944051
"--replicate-check on by default, detects diff"
);
@@ -297,7 +297,7 @@ is_deeply(
is(
$exit_status,
1,
2048,
"Non-zero exit status"
);
@@ -386,8 +386,8 @@ like(
is(
$exit_status,
1,
"Exit status 1 when no slaves are found (bug 1087804)"
8, # https://bugs.launchpad.net/percona-toolkit/+bug/944051
"Exit status 8 when no slaves are found (bug 1087804)"
) or diag($output);
# #############################################################################