Follow_PR-429_unstop_option_with_testcase

- Added information message about removing sentinel file
- Added cross-links for options --stop and --unstop in docs
- Added test case
This commit is contained in:
Sveta Smirnova
2023-11-07 16:24:08 +03:00
parent db8207b1ed
commit c1b751927c
2 changed files with 24 additions and 3 deletions

View File

@@ -84,7 +84,26 @@ like(
'Created the sentinel OK'
);
diag(`rm -f $sentinel`);
# Test --unstop, which removes the sentinel
$output = output(
sub { pt_archiver::main("--source", "D=test,t=table_1,F=$cnf",
qw(--where 1=1 --why-quit --purge),
"--sentinel", $sentinel, "--unstop")
},
);
like(
$output,
qr/Successfully removed file $sentinel/,
'Removed the sentinel OK'
) or diag($output);
$output = `/tmp/12345/use -N -e "select count(*) from test.table_1"`;
is(
$output + 0,
0,
'Rows were deleted'
) or diag($output);
# #############################################################################
# Issue 391: Add --pid option to mk-table-sync