From 7b378f601380a22cf49c88e8c9dee436e05954dd Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Wed, 10 May 2023 11:03:26 +0530 Subject: [PATCH] Fix incorrect jq parsing for sanity tests for SharePoint (#3377) --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- .github/workflows/sanity-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sanity-test.yaml b/.github/workflows/sanity-test.yaml index c6772396d..fd5333464 100644 --- a/.github/workflows/sanity-test.yaml +++ b/.github/workflows/sanity-test.yaml @@ -439,7 +439,7 @@ jobs: resultjson=$(sed -e '1,/Completed Backups/d' $TEST_RESULT/backup_sharepoint.txt ) - if [[ $( echo $resultjson | jq -r '.[0] | .errorCount') -ne 0 ]]; then + if [[ $( echo $resultjson | jq -r '.[0] | .stats.errorCount') -ne 0 ]]; then echo "backup was not successful" exit 1 fi @@ -525,7 +525,7 @@ jobs: resultjson=$(sed -e '1,/Completed Backups/d' $TEST_RESULT/backup_sharepoint_incremental.txt ) - if [[ $( echo $resultjson | jq -r '.[0] | .errorCount') -ne 0 ]]; then + if [[ $( echo $resultjson | jq -r '.[0] | .stats.errorCount') -ne 0 ]]; then echo "backup was not successful" exit 1 fi