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.
1 parent 3bf8055 commit b594dfbCopy full SHA for b594dfb
.circleci/config.yml
@@ -340,7 +340,8 @@ jobs:
340
name: Merge cached test results with results provided by circle (if any)
341
command: |
342
CIRCLE_TEST_RESULTS_FILE="$CIRCLE_INTERNAL_TASK_DATA/circle-test-results/results.json"
343
- [[ -f "$CIRCLE_TEST_RESULTS_FILE" ]] && circle_exists=1
+ # Using -s (file exists and has positive size) as this file might be empty
344
+ [[ -s "$CIRCLE_TEST_RESULTS_FILE" ]] && circle_exists=1
345
[[ -f "$TEST_RESULTS_FILE" ]] && cached_exists=1
346
if [[ -z "$circle_exists" ]] || [[ -z "$cached_exists" ]]; then
347
# Only one exists, CirclePlugin will try to look for both so we're good.
0 commit comments