Skip to content

Commit

Permalink
[tests] fix JetBrains warmup integration test (#20348)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh authored Nov 6, 2024
1 parent e11d09d commit e8ab8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests/ide/jetbrains/warmup-indexing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# See License.AGPL.txt in the project root for license information.

# This script is used to test JetBrains prebuild warmup indexing (search warmup-indexing.sh in codebase)
# It will get the last indexing json file (scan type FULL_ON_PROJECT_OPEN)
# It will get the last indexing json file (scan reason `On project open`)
# and check if the scheduled indexing count is greater than a specified threshold
#
# `exit 0` means JetBrains IDEs no need to indexing again
Expand All @@ -19,7 +19,7 @@ JsonFiles=$(find "$ProjectIndexingFolder" -type f -name "*.json")

FilteredJsonFiles=()
for jsonFile in $JsonFiles; do
if jq -e '.projectIndexingActivityHistory.times.scanningType == "FULL_ON_PROJECT_OPEN"' "$jsonFile" > /dev/null; then
if jq -e '.projectIndexingActivityHistory.times.scanningReason == "On project open"' "$jsonFile" > /dev/null; then
FilteredJsonFiles+=("$jsonFile")
fi
done
Expand Down

0 comments on commit e8ab8e0

Please sign in to comment.