From 69af0f278da799177f50049670a1127cd1a8ce7e Mon Sep 17 00:00:00 2001 From: Xu Date: Sat, 16 Sep 2023 09:01:14 +0800 Subject: [PATCH] fix(test): fix meta recovery test --- src/storage/backup/integration_tests/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/backup/integration_tests/common.sh b/src/storage/backup/integration_tests/common.sh index 5ee314ba6482c..638c2b923776e 100644 --- a/src/storage/backup/integration_tests/common.sh +++ b/src/storage/backup/integration_tests/common.sh @@ -51,7 +51,7 @@ function drop_mvs() { function backup() { local job_id - job_id=$(${BACKUP_TEST_RW_ALL_IN_ONE} risectl meta backup-meta 2>&1 | grep "backup job succeeded" | awk '{print $(NF)}') + job_id=$(${BACKUP_TEST_RW_ALL_IN_ONE} risectl meta backup-meta 2>&1 | grep "backup job succeeded" | awk -F ',' '{print $(NF-1)}'| awk '{print $(NF)}') [ -n "${job_id}" ] echo "${job_id}" }