Skip to content

Commit

Permalink
fix(test): fix regex (#17249)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 authored Jun 14, 2024
1 parent fa50276 commit 1670f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/backup/integration_tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ function get_total_sst_count() {
}

function get_max_committed_epoch_in_backup() {
sed_str="s/.*\"state_table_info\":{\"[[:digit:]]*\":{\"committedEpoch\":\"\([[:digit:]]*\)\",\"safeEpoch\":\"\([[:digit:]]*\)\"}.*/\1/p"
sed_str="s/.*\"state_table_info\":{\"[[:digit:]]*\":{\"committedEpoch\":\"\([[:digit:]]*\)\",\"safeEpoch\":\"\([[:digit:]]*\)\".*/\1/p"
${BACKUP_TEST_MCLI} -C "${BACKUP_TEST_MCLI_CONFIG}" \
cat "hummock-minio/hummock001/backup/manifest.json" | sed -n "${sed_str}"
}

function get_safe_epoch_in_backup() {
sed_str="s/.*\"state_table_info\":{\"[[:digit:]]*\":{\"committedEpoch\":\"\([[:digit:]]*\)\",\"safeEpoch\":\"\([[:digit:]]*\)\"}.*/\2/p"
sed_str="s/.*\"state_table_info\":{\"[[:digit:]]*\":{\"committedEpoch\":\"\([[:digit:]]*\)\",\"safeEpoch\":\"\([[:digit:]]*\)\".*/\2/p"
${BACKUP_TEST_MCLI} -C "${BACKUP_TEST_MCLI_CONFIG}" \
cat "hummock-minio/hummock001/backup/manifest.json" | sed -n "${sed_str}"
}
Expand Down

0 comments on commit 1670f94

Please sign in to comment.