We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7bad34 + 0685139 commit 4c13a93Copy full SHA for 4c13a93
gate/post_test_hook.sh
@@ -5,8 +5,12 @@ MANAGE="/usr/local/bin/nova-manage"
5
function archive_deleted_rows {
6
# NOTE(danms): Run this a few times to make sure that we end
7
# up with nothing more to archive
8
+ if ! $MANAGE $* db archive_deleted_rows --verbose --before "$(date -d yesterday)" 2>&1 | grep 'Nothing was archived'; then
9
+ echo "Archiving yesterday data should have done nothing"
10
+ return 1
11
+ fi
12
for i in `seq 30`; do
- $MANAGE $* db archive_deleted_rows --verbose --max_rows 1000
13
+ $MANAGE $* db archive_deleted_rows --verbose --max_rows 1000 --before "$(date -d tomorrow)"
14
RET=$?
15
if [[ $RET -gt 1 ]]; then
16
echo Archiving failed with result $RET
0 commit comments